- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Block size tuning questions
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2002 09:46 PM
07-21-2002 09:46 PM
Block size tuning questions
Have checked there are many many articles relating to above typical Q here. Currently our system has tune these parms but result in very poor performance. Maybe we have set wrong parm. on this. Hope hope you guys can share points of view on this.
Our system is running 48G memory with 32G dynamic buffer cache ( Yeah, it's huge ^_^ ). Our DB , Gemstone, are running 34 extents, 1 extent is one large file 4.2G each. Besides, we have one application data dir which consists of 80K ( number ) small files ( Yeah, it's also huge ). Our tuning on this block size is from 8K ( default ) to 64K. But it fail as the performance is very poor. Both LV is striped. DB LV is striped with 8K block size, while the data LV is striped with 16K block size. I have checked some doc saying that "When striping with LVM, one should make sure that the file system block size and the LVM stripe size are identical. This will aid performance. " Is that true? It maybe the reason why we get the poor performance after tune but I have no idea on this. Also as a newbie, what counters should I pay attention ( I only get very standard 'sar' to monitor... ) after tuning the parm? As our system is really huge, it's really an headache for me to tune best the system, hope those experts can share way / advise how to tune such an "monster", thx.
Bgds,
Gordon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2002 09:53 PM
07-21-2002 09:53 PM
Re: Block size tuning questions
Why would you have 32Gb of buffer cache....
What sort of disk array do you have?
To monitor your system performance do you
have glance installed? (/opt/perf/bin/glance)
This will give some online stats far better
and more easily understood than anything
that sar has to offer. If you don't have it
installed you can easily install it from
your application CD set. There is a 60 day
trial copy there. Use 'swinstall' to install
it with no outage.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2002 10:02 PM
07-21-2002 10:02 PM
Re: Block size tuning questions
Thx for your reply, indeed I do notice many experts here recommend to tune down the buffer cache size, maybe 4 to at most 20% buffer cache range is enough, however our DB size is 120G and if we want to make use of this very large buffer cache to cache data ( Our application is read intensive ), so is it setting sensible? I have glance installed but somehow not know what counter should I read. I do check the Page In / Page Fault but somehow it's no big change before / after tuning? Can u give some advise? Thx.
Bgds,
Gordon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2002 10:15 PM
07-21-2002 10:15 PM
Re: Block size tuning questions
Somewhere in the vicinity of 300-500Mb is usually a sufficient size. I have a 180Gb database instance here on an rp8400 server running 8gb RAM 2gb Swap and 400Mb of buffer cache. It currently uses less than 50% of memory and buffer cache.
When using glance what is the total amount of memory and buffer cache being used on your system?
Does glance report heavily utilised disk IO %?
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2002 10:21 PM
07-21-2002 10:21 PM
Re: Block size tuning questions
As we are using dynamic buffer cache, our peak days should be Monday to Friday. Monday buffer cache size is somehow 9G and then when in Friday, it usually grow up 30G, it's cumulative. Before tuning, it's 8K block and usually disk util. is around 30-50% in glance. After tuing, 64K, it grow up 80-90%. Is this help? Thx.
Bgds,
Gordon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2002 10:23 PM
07-21-2002 10:23 PM
Re: Block size tuning questions
Supplement. We are using EMC 3930 with 12G disks cache in the array box. As talked , the LV's is already stripped across 2 physical.. Thx.
Bgds,
Gordon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2002 05:49 AM
07-22-2002 05:49 AM
Re: Block size tuning questions
If your LVM stripe is 16K but your LUNS are striped with 8K. This could be a problem as when it writes to each LUN it will need to do two IO's! The disk will effectively have 1x seek + 2x latency + 2x transfer. I guess the disks are 10,000 rpm, that means you will be waiting for an extra 6ms for each IO!! EMC You would normally expect low service times say 4ms per IO, so 6ms is alot.
I would tune down the LVM to 8K and see what happens.
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2002 06:21 AM
07-22-2002 06:21 AM
Re: Block size tuning questions
I strongly suspect that your 32GB buffer cache is killing you. The search times within the buffer cache may well exceed the time required to do the I/O. I have never founds any benefits
above about 1GB and usually the marginal improvements in buffer cache hit ratio's are very small about about 400MB (10.20,11.0) or 800MB (11.11).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2002 05:28 PM
07-22-2002 05:28 PM
Re: Block size tuning questions
Yes, u are right that we are using vxfs filesystem. Can u share where can I found the research about the large cache size impact to the system? Thx.
Bgds,
Gordon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2002 04:43 AM
08-05-2002 04:43 AM
Re: Block size tuning questions
from what I have experienced a smaller buffercache is recommended for DB systems (preferably static i.e. dbc_min=dbc_max=2-5%), and bigger BC for file-server systems. After all the DB software offers buffering in memory, for fast data access. Why not shrink the BC, and increase the DB shared memory segments ?
Also when setting up database servers for SAP, the SAP R3 operations centre in HP Boblingen recommends using distributed filesystems, also referred to as extent based striping. This gives the best performance for the random I/O that is typical for DB access.
The filesystem blocksize should be equal to the DB blocksize.
Rgds Jarle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2002 05:45 AM
08-05-2002 05:45 AM
Re: Block size tuning questions
sysdef | grep bufpages
And take the output number, multiply by 4096 (page size) and this is the size of your current cache in bytes. Normally the max is 300-350 Megabytes. Anymore than that actually slows performance.
I suspect either your EMC has 32Mb of disk cache, or your Oracle SGA size (shared memory) is set to 32Gb. Can you confirm ?
The ideal LVM stripe size is 64k, although I have ocassionally seen 32 or 128k slightly better. 16 seems far too low to me.
The following command will report memory/swap util;
swapinfo -mt
And this command will show if any paging is going on;
vmstat 1 1
(look at the pi/po fields - should be zero)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2002 09:36 AM
08-05-2002 09:36 AM
Re: Block size tuning questions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2002 02:56 AM
08-06-2002 02:56 AM
Re: Block size tuning questions
Stefan, we do have 32GB buffer cache in our Superdome domain, I have double verify it with your command provide and glance also. Our read / write hit ratio for this big cache is over 90% / 50% respectively in most time, as talked our application is read intensive. This behaviour is expected.
No paging is observed in our domain.
Memory info as below:
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 1504 0 1504 0% 0 - 1 /dev/vg00/lvol2
dev 16800 0 16800 0% 0 - 1 /dev/vg00/lvdump
reserve - 6112 -6112
memory 38130 35092 3038 92%
total 56434 41204 15230 73% - 0 -
Jarle,
Our superdome is quite complicated to classify as application server / filesystem server. I would say our server is both type of server. DB is located in this domain, also it has some huge filesystem ( over 60000 files in dir ) which serve as an NFS server to 4 Sun Micro domains. From your information provide, sounds the standard for tuning on this 2 type of server is totally different, right? Since our DB is 32bit single thread process, so at most I can only achieve 1.9G shared memory by setmemwindow...that's why we need to discover the huge BC...
Thx again for all your input.
Bgds,
Gordon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2002 01:47 PM
08-10-2002 01:47 PM
Re: Block size tuning questions
I do not know "GemStone", but I can only guess that it behaves pretty much like every other database when accessing data:
- due to transaction processing write access must be synchronous quite often
- read access will be buffered by the database itself
So, a huge UN*X buffer cache will simply NOT be used for all the synchronous writing (called "write-through-buffer-cache" feature) and help much less than an increased database shared memory.
Hence, get the documentation about that database system of yours, and read specifically about those two areas!
Just my $0.02,
Wodisch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2002 08:18 PM
08-10-2002 08:18 PM
Re: Block size tuning questions
This is what a large buffer cache gets you. You want to do a read. The system does the read request, and you have to sit and wait for the system to decide if the file is in the cache. For 32GB, you sit and sit and sit. Then you either get your file, or your then have to go to disk and get the file, read it into the cache, and then give the data to the process. When you are doing many transactions, that is alot of overhead waiting while you are traversing the buffer. A word of advice:
"Just read from the disk already!!!"
Disks today are faster than a few years ago. The buffer cache really protected us from those older slower disks. With faster disks, a buffer cache really becomes even less needed than in the past. Tack a cache on your SAN, and the buffering your DB does, and you efectively have buffering on top of buffering on top of buffering. Not good.
I hope I have been able to explain why you do not want such a large buffer..
Hope it helps
John