From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,de25bd1e07d05c12 X-Google-Attributes: gidf678f,public X-Google-Thread: fee84,de25bd1e07d05c12 X-Google-Attributes: gidfee84,public X-Google-Thread: 1014db,de25bd1e07d05c12 X-Google-Attributes: gid1014db,public From: Steve Huston Subject: Re: Digital unix slow as a wet week? Date: 1996/11/13 Message-ID: <328A10FF.794B@see.mro.dec.com>#1/1 X-Deja-AN: 196262775 references: <569118$at9@status.gen.nz> content-type: text/plain; charset=us-ascii organization: Digital Equipment Corporation - Marlboro, MA mime-version: 1.0 newsgroups: comp.unix.osf.misc,comp.unix.osf.osf1,comp.lang.c x-mailer: Mozilla 3.0 (X11; I; OSF1 V4.0 alpha) Chris Pugmire wrote: > > Hi, I hope that got someones attention. > > I have a 'c' program, that writes a lot of files to a lot of > directories, using 'open', 'close' 'write' calls. > > On intel linux it runs 6 times faster than on digital unix v4. > > Can anyone tell me why, it appears that digital unix is blocking the > process while it writes the files but linux does not. Is there some > tuning parameter to fix this, or some option in the c libraries? >From the write(2) man page on Digital UNIX: If the O_SYNC flag of the file status flags is set and the filedes parame- ter refers to a regular file, a successful write() function does not return until the data is delivered to the underlying hardware (as described in the open() function). I'm not sitting near my Linux box, so I can't check that one, but it's one hint anyway. -- Steve Huston On contract to Digital TCP/IP, CORBA, DCE consulting and apps COHESION SEE Engineering Internet: shuston@ultranet.com huston@see.mro.dec.com (508) 384-5708 (508) 467-4771