* Digital unix slow as a wet week?
@ 1996-11-12 5:00 Chris Pugmire
1996-11-12 5:00 ` Mike Iglesias
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Chris Pugmire @ 1996-11-12 5:00 UTC (permalink / raw)
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?
Many thanks in advance if anyone can help with this.
ChrisP, netwin@world.std.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Digital unix slow as a wet week?
1996-11-12 5:00 Digital unix slow as a wet week? Chris Pugmire
1996-11-12 5:00 ` Mike Iglesias
@ 1996-11-12 5:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
1996-11-13 5:00 ` Steve Huston
2 siblings, 0 replies; 4+ messages in thread
From: Alan Rollow - Dr. File System's Home for Wayward Inodes. @ 1996-11-12 5:00 UTC (permalink / raw)
In article <569118$at9@status.gen.nz>, netwin@world.std.com (Chris Pugmire) writes:
>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.
It would help to know what kind of system and I/O subsystem. Digital
UNIX is supported on many older Alpha systems that are slower than
newer Intel based systems.
>Can anyone tell me why, it appears that digital unix is blocking the
>process while it writes the files but linux does not.
I don't have access to source to verify, but I think Digital UNIX
does a synchronous flush on close. If the files are small the
open/close time will easily dominate the I/O time. If Linux
doesn't think enough of your data to ensure it on the disk after
the file is closed, then it certainly be faster.
Another possibility is how data writes are scheduled and retired.
On UFS (a Berkeley Fast File System implementation), writes which
end on a file system block boundary are immediately scheduled for
writing. The I/O is still asynchronous, once the data is copied
into the kernel buffer. The affect is that data trickles out to
the disk in a steady stream (or flood). The kernel variable
delay_wbuffers controls this. If set, all writes will be delayed
until a sync or the cache needs to be flushed to make room for other
data.
Less likely, but possible, is that the disks on the Intel system
have a write-cache enabled at the disk, which is making the writes
faster. Digital doesn't ship any of its disks with the write cache
enabled, since it places the data to be stored on them at risk. But
if you want to run the risk you may be able to enable the feature
through scu(8).
Finally, the Digital UNIX does support the option of mounting
file system for synchronous writes. It may worth checking to
see how the file system is mounted.
>ChrisP, netwin@world.std.com
--
Alan Rollow alan@nabeth.cxo.dec.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Digital unix slow as a wet week?
1996-11-12 5:00 Digital unix slow as a wet week? Chris Pugmire
@ 1996-11-12 5:00 ` Mike Iglesias
1996-11-12 5:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
1996-11-13 5:00 ` Steve Huston
2 siblings, 0 replies; 4+ messages in thread
From: Mike Iglesias @ 1996-11-12 5:00 UTC (permalink / raw)
In article <569118$at9@status.gen.nz>,
Chris Pugmire <netwin@world.std.com> 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.
Are you writing to local disk in each case? If you're writing to an NFS
mounted disk on the Alpha, that will slow your program down.
More details about what you are doing, how many files, etc. would
be useful.
--
Mike Iglesias Internet: iglesias@draco.acs.uci.edu
University of California, Irvine phone: (714) 824-6926
Office of Academic Computing FAX: (714) 824-2069
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Digital unix slow as a wet week?
1996-11-12 5:00 Digital unix slow as a wet week? Chris Pugmire
1996-11-12 5:00 ` Mike Iglesias
1996-11-12 5:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
@ 1996-11-13 5:00 ` Steve Huston
2 siblings, 0 replies; 4+ messages in thread
From: Steve Huston @ 1996-11-13 5:00 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1996-11-13 5:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-11-12 5:00 Digital unix slow as a wet week? Chris Pugmire
1996-11-12 5:00 ` Mike Iglesias
1996-11-12 5:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
1996-11-13 5:00 ` Steve Huston
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox