If this isn't exactly what you wanted, please try our Search (there's a LOT of techy and non-techy stuff here about Linux, Unix, Mac OS X and just computers in general!):
From: Bela Lubkin <belal@sco.com> Subject: Re: How do I increase NBUF safely? Date: Wed, 25 Jun 2003 08:04:45 GMT References: <e84f5d12.0306242103.6fefa11@posting.google.com> "googleboy" wrote: > My OpenServer 5.0.6 system seems to be suferring random go slows, and > I am getting data out of sar suggests strongly that it is a disk > system bottleneck and I should increase my NBUF to cope better with > it... My big issue is that I really have absolutley no idea how to > increase the NBUF figure, nor do I know how much to increase it by so > as not to run myself low of memory in the system > > Can someone let me know...? Or point me to instructions? > > Just incase it make a difference, the system itself is an Intel Mobo > with dual P3 Xeon processors and 1Gig of physical memory. I beleive > it has been configured to have 3gig swap. The disk system is a SCSI > RAID5 + hotspare thing, with 4 10000rpm 36g scsi drives...
There are many ways to see how much memory is free. To see current free memory, run `sar -r 1 1` and `swap -l`: $ sar -r 1 1 SCO_SV deeptht 3.2v5.0.6 PentIII 06/25/2003 00:47:20 freemem freeswp availrmem availsmem (-r) 00:47:21 530044 6307456 621592 1315542 $ swap -l path dev swaplo blocks free /dev/swap 1,105 0 6307456 6307456 Unfortunately, the units here are of two sizes. The swap numbers (last two columns of `swap -l`, and the "freeswp" column of `sar -r`) are in 1/2K units. The three "mem" numbers are in 4K units.
The `swap -l` output shows that 3153728K (slightly over 3GB) of swap
space is free, and that _all_ swap space is free ("blocks" and "free"
are identical). That part is important: it shows that the system has
never needed to swap since it's been up. In other words, it has more
memory than it needs to handle the load.
"freemem" shows how much RAM is currently free. It's in 4K units, so
2120176K (slightly over 2GB) is currently free.
If you turn on periodic `sar` sampling (see sar_enable(ADM)), you can
get a long-term picture of how much memory your system is using.
Now, on to your specific question. You don't want to increase NBUF so
much that the system actually runs out of memory and has to start
swapping. So you look at memory usage periodically (by hand, or by
`sar` sampling). Then you can increase NBUF to consume most of the
different.
Note, however, that NBUF cannot be larger than 450000 (450MB) on
OpenServer. If you find that you consistently have 800MB free, you
still can't use all of it for buffer cache.
A commercial product, "SarCheck", analyzes `sar` output and makes tuning
recommendations. www.sarcheck.com. I believe you can download a demo
version to "try before you buy".
>Bela<
/Bofcusm/2184.html copyright 1997-2004 (various authors) All Rights Reserved
Have you tried Searching this site?
Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates
This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.
Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.
Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.
We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.
Click here to add your comments
Don't miss responses! Subscribe to Comments by RSS or by Email
Click here to add your comments
If you want a picture to show with your comment, go get a Gravatar