- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- HPE 9000 and HPE e3000 Servers
- >
- memory problem
HPE 9000 and HPE e3000 Servers
1753905
Members
9782
Online
108810
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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-04-2005 05:58 PM
тАО05-04-2005 05:58 PM
memory problem
We have a multithreaded application. On startup, one thread loads a large amount of data (~600MB) onto the heap. Some time later, another thread frees up the memory and then re-loads the data onto the heap. This causes a large increase in the process size, but mallinfo() tells us that this is entirely due to unused blocks on the free list - in other words, the extra memory is being wasted.
In more detail:
After the data has been loaded initially, memorymap() tells us the situation is as follows:
Arena 0: Free = 100KB, Used = 115MB, Small Blocks = 472MB (of which 469MB is in use according to mallinfo()).
Arena 1: Free = 123KB, Used = 30KB, Small Blocks = 370KB
All other arenas are unused.
After the data has been freed and reloaded, the situation is like this:
Arena 0: Free = 46MB, Used = 70MB, Small Blocks = 472MB (of which 170MB is free)
Arena 1: as before
Arena 2: Free = 1KB, Used = 45MB, Small Blocks = 170MB
All other arenas are unused.
As can be seen, ~216MB is being held in the free lists in Arena 0. This is wasting memory and causing us problems.
Cheers,
In more detail:
After the data has been loaded initially, memorymap() tells us the situation is as follows:
Arena 0: Free = 100KB, Used = 115MB, Small Blocks = 472MB (of which 469MB is in use according to mallinfo()).
Arena 1: Free = 123KB, Used = 30KB, Small Blocks = 370KB
All other arenas are unused.
After the data has been freed and reloaded, the situation is like this:
Arena 0: Free = 46MB, Used = 70MB, Small Blocks = 472MB (of which 170MB is free)
Arena 1: as before
Arena 2: Free = 1KB, Used = 45MB, Small Blocks = 170MB
All other arenas are unused.
As can be seen, ~216MB is being held in the free lists in Arena 0. This is wasting memory and causing us problems.
Cheers,
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-05-2005 01:21 AM
тАО05-05-2005 01:21 AM
Re: memory problem
Are you using the same low level routines to do the memory mapping in both process 1 and process 2 ?
I'd check to make sure those are coded the same for starters.
What OS are you running ? What memory map patches do you have (i.e. swlist -l product | grep mmap ) ?
I'd check to make sure those are coded the same for starters.
What OS are you running ? What memory map patches do you have (i.e. swlist -l product | grep mmap ) ?
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-05-2005 01:24 AM
тАО05-05-2005 01:24 AM
Re: memory problem
Hi Kent,
we are using hp-ux 11.0
output swlist -l product | grep mmap is
PHKL_22677 1.0 fix of getdirentries, MVFS, rcp, mmap & I
DS
PHKL_25813 1.0 Cumulative mmap fixes
PHKL_27207 1.0 mmap of a java JAR file on CDROM fails
PHKL_27813 1.0 POSIX AIO;getdirentries;MVFS;rcp;mmap/IDS
thanks
Regards Michael
we are using hp-ux 11.0
output swlist -l product | grep mmap is
PHKL_22677 1.0 fix of getdirentries, MVFS, rcp, mmap & I
DS
PHKL_25813 1.0 Cumulative mmap fixes
PHKL_27207 1.0 mmap of a java JAR file on CDROM fails
PHKL_27813 1.0 POSIX AIO;getdirentries;MVFS;rcp;mmap/IDS
thanks
Regards Michael
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP