From: Nick Hill <n.m.hill@rl.ac.uk>
To: Mark Wiederspahn <markw@utig.ig.utexas.edu>
Subject: Re: DU 4.0a: large io leads to nearly locked machine
Date: 1997/10/08 [thread overview]
Message-ID: <343B5881.AA9ED743@rl.ac.uk> (raw)
In-Reply-To: markw-0810970114010001@slip-128-16.ots.utexas.edu
Mark Wiederspahn wrote:
>
> 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
To minimize UBC try using:
ubc-maxpercent
ubc-borrowpercent
vm-ubcseqstartpercent
These are explained in the kernel tuning doc. There are some other
parameters to do with ubc usages as well. With these you can limit the
max size of the UBC and also the maximum amount of the UBC used for
buffering a single file.
Nick Hill
prev parent reply other threads:[~1997-10-08 4:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-10-08 4:00 DU 4.0a: large io leads to nearly locked machine Mark Wiederspahn
1997-10-08 4:00 ` Nick Hill [this message]
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