From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,bced9a89ad5e0a32,start X-Google-Attributes: gid1164f8,public X-Google-Thread: fee84,bced9a89ad5e0a32,start X-Google-Attributes: gidfee84,public From: Andrew Hobson Subject: Glacially slow open(2)s in mqueue on DU 4 Date: 1997/02/25 Message-ID: #1/1 X-Deja-AN: 221444853 Sender: ahobson@computer.eng.mindspring.net X-Server-Date: 26 Feb 1997 01:16:53 GMT Content-Type: text/plain; charset=US-ASCII Organization: MindSpring Enterprises Mime-Version: 1.0 (generated by tm-edit 7.96) Newsgroups: comp.sys.dec,comp.unix.osf.osf1 Originator: ahobson@computer.eng.mindspring.net 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.