From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,d64422e185ecf9db,start X-Google-Attributes: gidfee84,public From: markw@utig.ig.utexas.edu (Mark Wiederspahn) Subject: DU 4.0a: large io leads to nearly locked machine Date: 1997/10/08 Message-ID: #1/1 X-Deja-AN: 278636117 Organization: Institute for Geophysics, U of Texas at Austin Newsgroups: comp.unix.osf.osf1 Digital Unix 4.0a, 1 Gb memory, Alpha 600 5/333, 4.5 gb swap March 1997 BL5 patches installed. We're running a code which basically passes 5 Gb of user data through memory many times, triple buffered. In a 1G machine, there are 3 buffers, one read-ahead, one processing, one write-behind, done with Posix aio and large io's (eg 300 Mb in one io - the code is ported from a Cray). Run time if the cpu is fully utilized with nearly 1G memory is 20+ days. If memory is reduced, run time increases. The timing of the io's is worst case - buffers are switched when all 3 are done; usually the processing buffer is the last to finish. The next read ahead and the next write behind ios are started at the same time, so 600 Mb is in transit for a while. [It would not be easy to change this...] The Problem: the machine nearly locks up in some sort of kernel panic io mode at 100% system. No character echo in xterms, no rpc calls, quite dead except for IP echoes. The larger the amount of memory used by the process, the worse the lockup. At 500 Mb, the system is obnoxiously unusable. At 700 Mb, the system locks out for about 10 minutes at a time. At 900 mb, the system is nearly always locked out. This lockout leads to loss of user cpu time as well, so the process takes proportionally longer. This is the only job running on the system; the system can be tuned to run this one process as efficiently as possible. I'm looking for a way to keep the UBC use minimized, or to declare the data stream un-bufferable in the UBC, as none of the data read in or written out will ever be used again. What I really want is direct io, but I don't see any such facility in DU. I don't want to use raw disks if I can possibly avoid it. There is nothing particular about this program - any program which has several large write's in progress can show this lockout behavior. I have not tested reads. Suggestions for kernel parameter diddling or other tuning gratefully accepted. thanks, mw