Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Unix Operating Systems > Sco Unix

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-03-2008, 02:45 PM
yannanqi@126.com
 
Posts: n/a
Default NBUF NHBUF and MAXBUF tuning

On OSR506 platform with 4G memory, the mtune shows:NBUF
0 24 450000,that means the maximum value of NBUF is
450000,but if I give 1000000 to NBUF,when system starts,it give the
following message:

kernel: Hz = 100, i/o bufs = 467116k (high bufs = 466092k)CONFIG:
Buffer allocation was reduced (NBUF reduced to 467116)

(1)That means NBUF gets a value of 467116, where does this number come
from?

ps:
(2) If NBUF has a value other than zero, Is it ok to let NHBUF=0? Can
NHBUF self-tune according to NBUF when NBUF is not set to zero?
(3)When does MAXBUF have effect, when NBUF is zero or NBUF is not zero?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-03-2008, 02:45 PM
scoace
 
Posts: n/a
Default Re: NBUF NHBUF and MAXBUF tuning

On Apr 2, 1:26 am, yanna...@126.com wrote:
> On OSR506 platform with 4G memory, the mtune shows:NBUF
> 0 24 450000,that means the maximum value of NBUF is
> 450000,but if I give 1000000 to NBUF,when system starts,it give the
> following message:
>
> kernel: Hz = 100, i/o bufs = 467116k (high bufs = 466092k)CONFIG:
> Buffer allocation was reduced (NBUF reduced to 467116)
>
> (1)That means NBUF gets a value of 467116, where does this number come
> from?
>
> ps:
> (2) If NBUF has a value other than zero, Is it ok to let NHBUF=0? Can
> NHBUF self-tune according to NBUF when NBUF is not set to zero?
> (3)When does MAXBUF have effect, when NBUF is zero or NBUF is not zero?


On OSR5 the buffer memory maximum is about 450MB, hence the 467116K.

First, have you checked sar -b to see what your %rcache and %wcache
hits
are. Never helps to fix a problem you do not have.

This topic is fairly well documented, check out:

http://osr507doc.sco.com/en/PERFORM/...fer_cache.html
http://osr507doc.sco.com/en/PERFORM/mp_nhbuf.html

You will find this information on NHBUF:

If you set NHBUF to 0, the system configures the number of buffer
cache hash queues automatically at startup. On a uniprocessor system,
the system sets the number of hash queues to the nearest power of 2
that is greater than or equal to half the value of NBUF. This should
be treated as a recommended lower bound for NHBUF; you may find that
setting NHBUF to a higher value gives better performance.

NOTE: The value that you assign to NHBUF must be a power of 2; 512,
1024, and 2048 are examples.

On a multiprocessor system, the system sets the number of hash queues
to the nearest power of 2 that is greater than or equal to twice the
value of NBUF. The reason for this can be seen from ``Keeping the
ratio of hash queues to buffers low reduces contention for SMP''. On a
system with an SCO SMP License, the kernel running on one CPU locks
the entire hash queue when it accesses a buffer. The kernel running on
another CPU that wants to access the same hash queue must wait until
it is released. Such contention can be avoided by keeping the ratio of
hash queues to buffers low. For example, if the value of NBUF is 32000
on a system with an SCO SMP License, you should set NHBUF to at least
65536.


Mike
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-03-2008, 02:45 PM
yannanqi@126.com
 
Posts: n/a
Default Re: NBUF NHBUF and MAXBUF tuning

Many thanks, I see.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:50 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145