* Digital unix slow as a wet week?
@ 1996-11-12 5:00 Chris Pugmire
1996-11-12 5:00 ` Mike Iglesias
` (4 more replies)
0 siblings, 5 replies; 7+ 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] 7+ 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 ` Steve VanDevender
1996-11-14 5:00 ` Eric Werme
1996-11-12 5:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
` (2 subsequent siblings)
4 siblings, 1 reply; 7+ messages in thread
From: Steve VanDevender @ 1996-11-12 5:00 UTC (permalink / raw)
netwin@world.std.com (Chris Pugmire) writes:
> 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
Linux is very good at caching files in memory, to the point that my
486-66 running Linux gets surprisingly comparable numbers compared to my
AlphaStation 255/233 running Digital UNIX. Linux also has substantially
lower system call overhead.
Without knowing more details of your program, it's hard to suggest any
tuning possibilities for your application. I suppose you could always
install Alpha Linux on your system :-).
BYTE UNIX Benchmarks (Version 3.11)
System -- Linux tzadkiel 2.0.25 #55 Fri Nov 8 15:36:41 PST 1996 i486
[ 486DX2/66, Fujitsu 1 GB SCSI disk ]
System Call Overhead Test 29649.6 lps (10 secs, 6 samples)
Pipe Throughput Test 19945.1 lps (10 secs, 6 samples)
Pipe-based Context Switching Test 9927.5 lps (10 secs, 6 samples)
Process Creation Test 374.1 lps (10 secs, 6 samples)
Execl Throughput Test 51.5 lps (9 secs, 6 samples)
File Read (10 seconds) 78067.0 KBps (10 secs, 6 samples)
File Write (10 seconds) 10500.0 KBps (10 secs, 6 samples)
File Copy (10 seconds) 1403.0 KBps (10 secs, 6 samples)
File Read (30 seconds) 81780.0 KBps (30 secs, 6 samples)
File Write (30 seconds) 9461.0 KBps (30 secs, 6 samples)
File Copy (30 seconds) 1423.0 KBps (30 secs, 6 samples)
C Compiler Test 53.6 lpm (60 secs, 3 samples)
Shell scripts (1 concurrent) 94.9 lpm (60 secs, 3 samples)
Shell scripts (2 concurrent) 53.0 lpm (60 secs, 3 samples)
Shell scripts (4 concurrent) 26.7 lpm (60 secs, 3 samples)
Shell scripts (8 concurrent) 13.0 lpm (60 secs, 3 samples)
BYTE UNIX Benchmarks (Version 3.11)
System -- OSF1 hexadecimal.uoregon.edu V4.0 464 alpha
[ AlphaStation 255/233 ]
System Call Overhead Test 67515.9 lps (10 secs, 6 samples)
Pipe Throughput Test 27044.2 lps (10 secs, 6 samples)
Pipe-based Context Switching Test 7877.7 lps (10 secs, 6 samples)
Process Creation Test 268.8 lps (10 secs, 6 samples)
Execl Throughput Test 129.6 lps (9 secs, 6 samples)
File Read (10 seconds) 95029.0 KBps (10 secs, 6 samples)
File Write (10 seconds) 2600.0 KBps (10 secs, 6 samples)
File Copy (10 seconds) 3286.0 KBps (10 secs, 6 samples)
File Read (30 seconds) 94156.0 KBps (30 secs, 6 samples)
File Write (30 seconds) 2333.0 KBps (30 secs, 6 samples)
File Copy (30 seconds) 2708.0 KBps (30 secs, 6 samples)
C Compiler Test 59.3 lpm (60 secs, 3 samples)
Shell scripts (1 concurrent) 131.7 lpm (60 secs, 3 samples)
Shell scripts (2 concurrent) 72.3 lpm (60 secs, 3 samples)
Shell scripts (4 concurrent) 38.0 lpm (60 secs, 3 samples)
Shell scripts (8 concurrent) 19.3 lpm (60 secs, 3 samples)
^ permalink raw reply [flat|nested] 7+ 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 ` Steve VanDevender
@ 1996-11-12 5:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
1996-11-13 5:00 ` Steve Huston
1996-11-15 5:00 ` Tor Arntsen
4 siblings, 0 replies; 7+ 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] 7+ 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 ` Steve VanDevender
` (3 subsequent siblings)
4 siblings, 0 replies; 7+ 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] 7+ 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
` (2 preceding siblings ...)
1996-11-12 5:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
@ 1996-11-13 5:00 ` Steve Huston
1996-11-15 5:00 ` Tor Arntsen
4 siblings, 0 replies; 7+ 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] 7+ messages in thread
* Re: Digital unix slow as a wet week?
1996-11-12 5:00 ` Steve VanDevender
@ 1996-11-14 5:00 ` Eric Werme
0 siblings, 0 replies; 7+ messages in thread
From: Eric Werme @ 1996-11-14 5:00 UTC (permalink / raw)
Steve VanDevender <stevev@hexadecimal.uoregon.edu> writes:
>Linux is very good at caching files in memory, to the point that my
>486-66 running Linux gets surprisingly comparable numbers compared to my
>AlphaStation 255/233 running Digital UNIX. Linux also has substantially
>lower system call overhead.
> BYTE UNIX Benchmarks (Version 3.11)
> System -- Linux tzadkiel 2.0.25 #55 Fri Nov 8 15:36:41 PST 1996 i486
> [ 486DX2/66, Fujitsu 1 GB SCSI disk ]
>File Read (10 seconds) 78067.0 KBps (10 secs, 6 samples)
>File Write (10 seconds) 10500.0 KBps (10 secs, 6 samples)
>File Copy (10 seconds) 1403.0 KBps (10 secs, 6 samples)
>File Read (30 seconds) 81780.0 KBps (30 secs, 6 samples)
>File Write (30 seconds) 9461.0 KBps (30 secs, 6 samples)
>File Copy (30 seconds) 1423.0 KBps (30 secs, 6 samples)
File write speeds of > 9 MB/sec from a 486 box? That sounds more like
writing to cache rather to disk. Big vendors tend to get in big
trouble if they leave too much data in volatile caches, hence our
support of Presto boards and some raid controllers with battery
backed caches.
Chris P's system may not be waiting for all the metadata of file
creates and deletes to make it to disk. You could check this
by writing a program that creates a lot of files, runing it, and
shutting off power. Print the file names to the screen, then compare
where it was at power off to what you have after fsck is done.
--
<> Eric (Ric) Werme <> This space under reconstruction <>
<> <werme@zk3.dec.com> <> <>
^ permalink raw reply [flat|nested] 7+ 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
` (3 preceding siblings ...)
1996-11-13 5:00 ` Steve Huston
@ 1996-11-15 5:00 ` Tor Arntsen
4 siblings, 0 replies; 7+ messages in thread
From: Tor Arntsen @ 1996-11-15 5:00 UTC (permalink / raw)
In article <werme.848009666@alingo.zk3.dec.com>,
werme@alingo.zk3.dec.com (Eric Werme) writes:
>Chris P's system may not be waiting for all the metadata of file
>creates and deletes to make it to disk. You could check this
>by writing a program that creates a lot of files, runing it, and
>shutting off power. Print the file names to the screen, then compare
>where it was at power off to what you have after fsck is done.
This is correct, the Linux file system writes the metadata asynchronously
pr. default (it can be set to synch. by a mount option though).
If Chris P's system is doing a lot of directory stuff then that may explain
the good performance. As an example 'rm -rf' is very fast with asynch.
metadata.
Tor
--
Mail address for humans (without spaces or _) : t o r @ s_p a c_e t e c . n o
I'm drowning in junk mail from companies with newsgroup search robots.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~1996-11-15 5:00 UTC | newest]
Thread overview: 7+ 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 ` Steve VanDevender
1996-11-14 5:00 ` Eric Werme
1996-11-12 5:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
1996-11-13 5:00 ` Steve Huston
1996-11-15 5:00 ` Tor Arntsen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox