- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: adding memory to alieve disk bottleneck
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
02-04-2005 02:11 AM
02-04-2005 02:11 AM
High cpu waiting on I/O
Not unusual for our application on UNIVERSE at end of month.
Management wants to throw memory at the problem. How do I take advantage of the extra memory. Add it all to buffer cache ?
I have 4GB now going to 16GB
Total VM : 972.9mb Sys Mem : 856.7mb User Mem: 768.8mb Phys Mem: 4.00gb
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2005 02:19 AM
02-04-2005 02:19 AM
Re: adding memory to alieve disk bottleneck
I would yes add some memory but I wonder if now already reducing your cache buffer will not help since you say "at end of month" meaning big batches maybe? Bring it to more reasonable size as 500 MB to start with and give it a try then you have JFS tuning options, then why not stripe?
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2005 02:22 AM
02-04-2005 02:22 AM
Re: adding memory to alieve disk bottleneck
Before throwing money at a very expensive solution, I would want to be very sure that it would help. Do you have Glance available? If so, check the buffer cache statistics in the Reports > System Info > System Tables report.
If you do go for more memory, you might want to increase buffer cache gradually and monitor it the same way to see how well it is being utilized.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2005 02:34 AM
02-04-2005 02:34 AM
SolutionI'd change bufpages = 0 (and nbuf=0) UNLESS the vendor has specified the ABSOLUTE use of bufpages=
What kind of EMC disk array do you have and what kind of EMC monitoring/managing tools do you have available?
live free or die
harry d brown jr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2005 02:38 AM
02-04-2005 02:38 AM
Re: adding memory to alieve disk bottleneck
You REALLY need to use glance/gpm to look at the problem because high wio% is *frequently* due to crappy coding.
First you need to look at what the *rest* of the CPU usage is - system OR user.
If it's user - THEN well you might just need more horse power - NOT memory. IF it's system then the detective work needs to be done & this *will* take some work & time.
You need to look at the following MeasureWare (OVPA) metrics:
GBL_PRI_QUEUE
GBL_RUN_QUEUE
GBL_CPU_INTERRUPT_UTIL
GBL_CPU_CSWITCH_UTIL
CBL_CPU_SYSCALL_UTIL
PROC_CPU_CSWITCH_UTIL
PROC_CPU_SYSCALL_UTIL
PROC_CPU_SYS_MODE_UTIL
These - and others - can clue you in to whether more RAM is going to help.
And I *seriously* think that unless you're paging out NOW - it will.
My 2 cents,
Jeff
P.S. NON-IT mgmnt should *never* make expensive technical decisions BY THEMSELVES.
Sheesh - that's WHY they hire the techs in the FIRST place!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2005 02:44 AM
02-04-2005 02:44 AM
Re: adding memory to alieve disk bottleneck
You mean adding memory in the EMC disk array
or in the server(s)?
In the server you can allocate more memory cache and buffers to the database for example.
In the EMC you can change the ratio of the read and write cache sizes already now with this 4GB.
But a little analyzing before you put the memory can't hurt.
It would be good to have statistics of the ¤Gb situation and then you can run the statistics again with 16Gb. And see if it really helps...
br,
B
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2005 02:52 AM
02-04-2005 02:52 AM
Re: adding memory to alieve disk bottleneck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2005 03:01 AM
02-04-2005 03:01 AM
Re: adding memory to alieve disk bottleneck
Your database can allocate a larger cache and have more reads come out of memory instead of disk.
Its also important to see how the i/o is spread across the disks.
If you have a particular disk with lots of i/o on it, look at what sits on it. If there is a way to re-arrange things to balance the i/o thats a good idea.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2005 03:16 AM
02-04-2005 03:16 AM
Re: adding memory to alieve disk bottleneck
EMC 8530 96 drives 6,551.19GB
4GB cache
UNIVERSE database
N4000 servers 4x440 4GB mem
buffercache 800MB fixed
%rcache above 90%
Many database selects for reports are the cause of the high I/O
along with some EMC disk contention.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2005 03:18 AM
02-04-2005 03:18 AM
Re: adding memory to alieve disk bottleneck
they are 80GB stripped metas.
10 spindles in each filesystem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2005 03:26 AM
02-04-2005 03:26 AM
Re: adding memory to alieve disk bottleneck
will NOT.
Ooooops,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2005 03:53 AM
02-04-2005 03:53 AM
Re: adding memory to alieve disk bottleneck
Your high wio% can be caused by many things...
Here's some tips:
Look at your FC or SCSI (however you're connecting to the EMC) bus utilization. If utilization is high, add some more busses.
Note that HP-UX likes a lot of LUNs. You have 80GB Metas, but how many? 1 per FS? If so, you would be better off not using MetaVolumes, and presenting several LUNs to HP-UX instead, letting LVM do the striping. The reason for this is that HP-UX does a better job managing the I/O queues when it has more queues to manage.
Take a close look at the LVM layout and MetaVolume layout of the EMC. If you place more than one FS on the same set of disks, they could be causing a lot of contention and thrashing the heads on those drives. Seperate your most highly used FS's onto different sets of disks.
Avoid mix logs (sequential access) and tablespaces (random I/O) on the same set of disks. If you need to, put only tablespaces that aren't used heavily with the logs.
Adding that memory to the database's SGA will likely (not guaranteed) lower the amount of disk I/O the database needs to do. This should at least help a little. Note that it typically doesn't solve problems like this, but it can help. Some database I/O needs to be synchronous (such as log writes), so it bypasses any SGA caching anyway...
If you have some performance monitoring software for the EMC, go and use it to make sure you're not overloading an internal bus or cpu, or causing a hot-spot on some of the drives.
I hope this helps,
Good Luck,
Vince
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2005 07:48 AM
02-04-2005 07:48 AM
Re: adding memory to alieve disk bottleneck
Universe uses hundreds to thousands of files, depending on the database design. Since it was designed during the days when 128 megs of RAM = really big, the MBUFS value would control the number of file handles that could be opened at the same time inside the program. Then, as other files were needed, less-used files would be closed and new files opened. You probably notice that the system overhead is fairly high 20%-40%. That's because the files are being opened and closed hundreds of times per second. You can verify this with:
sar -a 2 5
This will produce a report of directory operations (lookup filenames, directory blocks read, etc). Normal numbers might be single and double digits, while a busy Universe system might have 4 digit numbers and higher (thousands). To reduce these numbers, you need to increase MBUFS dramatically.
So to compute the needed changes to the kernel, make maxfiles (number of simultaneously open files per process) at least MBUFS + 50. So if MBUFS is 500, then maxfiles should be 550 or higher. maxfiles is just a runaway program protection so you can set it to 1000 and forget it if you want--no extra memory is used.
Then you must increase nfiles using the formula:
NUMPROC=max_number_of_Universe_processes
nfiles = MBUFS * NUMPROC + NUMPROC * 50
In other words, the maximum number of Universe processes (NUMPROC) times the maximum number of files opened at the same time in each process plus about 50 files that are always opened in each process.
Don't be alarmed at the size of nfile. If you have a Universe license for 500 users (really, instances of Universe at the same time) and you make MBUF=500, then nfiles must be at least 500 * 500 + 500 * 50 or 275000 (that's 250 thousand). Don't worry, HP-UX can scale up to several million files opened at the same time. You may need to add just another 4Gb (8Gb total).
NOTE: The buffer cache has an asymptotic curve of performance. 200 megs is way better than 100 megs, 500 megs improves a bit more, 1000 megs shows little improvement and beyond 1000 megs, little improvement will be seen. Set the maximum DBC % to 500-700 megs and you'll be at the top of the performance improvement curve.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2005 04:42 AM
02-07-2005 04:42 AM
Re: adding memory to alieve disk bottleneck
What OS? What are your kernel parameters?
swapinfo -tam?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2005 07:31 AM
02-07-2005 07:31 AM
Re: adding memory to alieve disk bottleneck
the kmtune was attached to the first message
We have and EMC 8530 dule path with power path and sar data ocasionally up to 50,000 I/O's sec (They are maxed)
There is no fixing that except with a new EMC D2000P which we will be getting next month.
Is there any way to use this extra 12GB of memory? More processors?
Tunable parameters?
I never found the MBUFS tunable in UNIVERSE
but
nfile 149984 - (320*(NPROC+16+MAXUSERS)/10+32+2*(NPTY+NSTRPTY+NSTRTEL))
swapinfo -tam
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4096 0 4096 0% 0 - 1 /dev/vg00/lvol2
reserve - 1506 -1506
memory 12758 488 12270 4%
total 16854 1994 14860 12% - 0 -
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2005 08:10 AM
02-07-2005 08:10 AM
Re: adding memory to alieve disk bottleneck
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2005 08:26 AM
02-07-2005 08:26 AM
Re: adding memory to alieve disk bottleneck
If you want to use the 12GB extra memory then set the nbuf value, regardless of the application. ;-)
(from the man pages)
nbuf:
The number of file-system buffer cache buffer headers. If both nbuf and bufpages are set to 0, the kernel allocates ten percent of available memory to buffer space. If only nbuf is 0, it will be computed from bufpages, assuming 4096 bytes per buffer. If both variables are non-zero, the kernel attempts to adhere to both requests, but if necessary, nbuf is changed to correspond to bufpages.
Regards,
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2005 10:36 AM
02-07-2005 10:36 AM
Re: adding memory to alieve disk bottleneck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2005 10:58 AM
02-07-2005 10:58 AM
Re: adding memory to alieve disk bottleneck
Yes I did add the swapmem_on to 1 after adding the 16GB of ram.
Glad to know you are checking out my config that close.
Only thing I think that might help is the system is an N4000 and we added 2 cariers to the system. This increases the memory bandwidth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2005 11:06 AM
02-07-2005 11:06 AM
Re: adding memory to alieve disk bottleneck
http://www.unixguide.net/hp/faq/5.3.2.shtml
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2005 01:31 PM
02-07-2005 01:31 PM
Re: adding memory to alieve disk bottleneck
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2005 08:57 PM
02-07-2005 08:57 PM
Re: adding memory to alieve disk bottleneck
With 16Gb of memory I would gradually increase the dbc_max_pct, first up to 1600Mb, then more and more until the performance stops getting better. That is on 11i; for 11.00, you won't get better performance with larger values.
I really recommend that you go to 11i if you aren't already on it as the filesystem and buffer management is much better.
On the down-side, end of month processing traditionally does full-table scans, possibly several times over, which can wipe out a lot of the caching benefits of large buffers. Vincent's posting may become more relevent with that in mind. Check your avwait/avserv/busy values in sar -d 5 12 or use Glance.
Are you still using only HFS filesystems? I would recommend going to vxfs for performance and read the excellent filesystem and hp tuning guides referenced here:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=712921
This has some pertinent points regarding your values of ninode and vxfs_ninode.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2005 02:44 AM
02-08-2005 02:44 AM