- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: system and buffer memory increase
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
05-14-2003 02:34 AM
05-14-2003 02:34 AM
system and buffer memory increase
I have just tried relinking these archive libraries as shared libraries and relinking the executables. I then ran a benchmark for the before and after code and measured memory usage using glance. I saw that the user memory decreased by about 5% (50Mb) but system memory increased by 100% (220Mb) and buffer cache increased by 250% (180Mb). Total memory usage for the archive version was 80% (of 1500Mb) and 100% for the entirely shared version.
Can someone explain the large increase in system memory and buffer cache.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2003 04:03 AM
05-14-2003 04:03 AM
Re: system and buffer memory increase
The buffer cache is not directly by shared libraries except as the file are read into RAM, they will also be stored in the buffer cache in anticipation of future reads. Since an archived executable is self-contained, the library code is read directly from the executable.
The concept of archived libraries is to be self-contained (a good thing in single user mode when /usr is not mounted) but wastes RAM when dozens of copies of the same program are run at the same time. If the app is never run as multiple instances, then there is little difference except as you've seen.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2003 04:19 AM
05-14-2003 04:19 AM
Re: system and buffer memory increase
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2003 04:42 AM
05-14-2003 04:42 AM
Re: system and buffer memory increase
I appreciate what you say about the design of shared libraries. Our application does have multiple copies of the same program running. This explained to me why the user memory usage decreased when I ran the shared library only version. I am happy as to why the buffer cache usage rose but I still do not know why the system memory usage increased by so much.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2003 04:52 AM
05-14-2003 04:52 AM
Re: system and buffer memory increase
Several things to remember about dynamic buffer cache:
1) The minimum (dbc_min_pct) is of course a static amount of memory, but it is also part of the kernel memory. Therefore great care should be taken to not set it too large as it will increase kernel size as well as lockable memory size.
2) The maximum (dbc_max_pct) is a "floating" value & will be pushed towards it's limit by heavy disk I/O - especially large reads & writes. But it will ONLY go down when RAM usage pressures it down. So again great care should be taken to poperly size it as well.
3) There is an overhead cost for using buffer cache & it's CPU usage. The CPU has to monitor & manipulate the cache, so there will be times when it's better to not use the buffer - mainly when reads & writes are in LARGE chunks.
My 2 cents,
Jeff