Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: Andrew Hobson <ahobson@eng.mindspring.net>
Subject: Glacially slow open(2)s in mqueue on DU 4
Date: 1997/02/25	[thread overview]
Message-ID: <kj4tf0qscf.fsf@computer.eng.mindspring.net> (raw)


One of our SMTP servers running DU 4.0 sometimes clobbers itself under
moderate load.  Using strace[1] with relative timestamps shows:

[pid 21627]      0.002928 open("qfTAA21627", O_WRONLY|O_CREAT|O_EXCL, 0600) = 7
[pid 21627]     60.445592 flock(7, LOCK_EX|LOCK_NB) = 0
[pid 21627]      0.000976 fcntl(7, F_GETFL) = 0x101 (flags O_WRONLY|FEXLOCK)
[pid 21627]      0.000976 open("xfTAA21627", O_WRONLY|O_APPEND|O_CREAT, 0644) = 10
[pid 21627]     17.877480 fcntl(10, F_GETFL) = 0x9 (flags O_WRONLY|O_APPEND)
[pid 21627]      0.000000 lseek(10, 0, SEEK_END) = 0

That's right.  *Sixty* seconds to create the qf file.  We're using
standard UFS.  Would tuning the file system to optimize for time
instead of disk blocks do any good?  I've heard good things about
AdFS.  It seems that should help a great deal.  Does anyone have any
experience with it and creating many small temporary files?

Drew

[1] I ported strace a couple of weeks ago, but I've been lazy and
haven't sent the patches to Rick Sladkey.  Harrass me if you need it.

-- 
Andrew Hobson, Senior Engineer
MindSpring Enterprises, Inc.



                 reply	other threads:[~1997-02-25  5:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox