From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d4db,e96bfab131456036,start X-Google-Attributes: gid10d4db,public From: karimik@sun.iust.ac.ir (Kamran Karimi) Subject: DIPC, a system for distributed programming Date: 1996/05/16 Message-ID: #1/1 X-Deja-AN: 155298474 x-original-date: Tue, 14 May 1996 02:06:25 -2359 followup-to: comp.os.linux.development.apps organization: IUST (Iran University of Science & Technology) keywords: distributed parallel programming multi computer Kernel IPC DSM newsgroups: comp.os.linux.announce -----BEGIN PGP SIGNED MESSAGE----- Good news for Linux power users! I am glad to announce the availability of a pre-alpha system for programming distributed applications, very easily. It works by making System V IPC mechanisms (shared memory, semaphores and messages) network transparent. Meaning that programs on different machines can use the same IPC key to exchange data and synchronize between themselves without bothering about the network. This is called 'Distributed IPC', or DIPC. Programs on different machines can use a key to get a shared region of memory. They can all read from it, and a write by one process will automatically become visible to others . This brings 'Segment Based' Distributed Shared Memory (DSM) to Linux. Messages can also be used to pass data in a synchronous way between machines. Semaphores are used to arbitrate access to the shared memory or the message queues. DIPC is a very simple system that seems to work well. The main parts of it run in user space. It has some advantages: *) There is no need to know about network programming. *) Unlike other distributed programming facilities, there are no new and complex material to learn. If you are familiar with System V IPC, you are already prepared to use DIPC. In any case you can find plenty of information about System V IPC in many books written by professionals. This is one less thing to worry about. *) Existing software, possibly designed for multiprocessor systems, which use System V IPC can easily be converted to distributed software. *) You can write (and to a great extend test) a distributed application on a single machine. *) Some distributed systems require the programmer to take active role in any data exchange across the network. This gives the ultimate flexibility but makes the programmer's work harder. Others, like page-based DSM systems, do data exchanges transparently, but the user has little say in what and how much is transferred. many problems, like false sharing, can occur. In DIPC, as the programmer determines the size of data exchanges (shared memory and message sizes) (s)he can tune the performance if (s)he wants to. It means ease of programming and controllability at the same time. *) DIPC was designed with a heterogeneous environment in mind. *) At least in theory, one may be able to use DIPC on WANs (Wide Area Networks). This may be a major advantage. DIPC can be used on a TCP/IP network. To use it, some changes must be done to the kernel (I used kernel 1.2.8 and gcc 2.6.3 on 486 machines). A manager program should also be running in user space. You can obtain the necessary files and information from the linux Incoming (or ALPHA) directory in sunsite.unc.edu. Note that DIPC is still very alpha. Little testing has been done on it. But This is the main reason I am making this public: to find as many bugs as possible. If you have questions about DIPC, send a mail to me. I am Kamran Karimi, a graduate software student at IUST (Iran University of Science & Technology), working towards an MS. My e-mail address: karimik@sun.iust.ac.ir My s-mail address: Kamran Karimi 89, Nastaran/Ghandehari Khosh Shomali str. 14578 - Tehran Iran@i In case you could not reach me at the above addresses, you may use S7323122@cic.aku.ac.ir (but try them first). -----BEGIN PGP SIGNATURE----- Version: 2.6.2i iQCVAwUBMZughIQRll5MupLRAQGNFwP9FV/Iz/ZcRcxtNoquQTC146qsqW9Lqi1Q n9BzivDQo8gVY6vt+JqN0fJyFo4U2WblWh31lctZjPlpW7eGCJ4FW5s9MsKWGOEL 3OGEi2VzR+G1hxhVeCtrqU0WBC6oqWXuoCYqn69cXLIdJ/utJY+Zzt7i61HZwxSb gXa9peX02dI= =lTHW -----END PGP SIGNATURE----- -- This article has been digitally signed by the moderator, using PGP. Finger wirzeniu@kruuna.helsinki.fi for PGP key needed for validating signature. Send submissions for comp.os.linux.announce to: linux-announce@news.ornl.gov PLEASE remember a short description of the software and the LOCATION.