- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to manage memory ???
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
06-16-2003 09:20 AM
06-16-2003 09:20 AM
I need your help to manage memory on one of our server.
This server has 8Gb RAM and 10Gb swap.
Sybase runs on this server and I allocate 6Gb to it.
Someone can explain me why the 6Gb allocated to Sybase appears in "total" line below ?
cpatl3:/home/bb/bb/etc#swapinfo -t
Kb Kb Kb PCT START/ Kb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 2097152 25792 2071360 1% 0 - 1 /dev/vg00/lvol2
dev 2097152 25340 2071812 1% 0 - 1 /dev/vg00/swap4
dev 2097152 25664 2071488 1% 0 - 1 /dev/vg03/swap2
dev 2097152 26024 2071128 1% 0 - 1 /dev/vg03/swap3
dev 2097152 22124 2075028 1% 0 - 1 /dev/vg01/swap5
reserve - 7105536 -7105536
total 10485760 7230480 3255280 69% - 0 -
What does this 69% means ? RAM and swap are mixed ?
I wish know which RAM is free and which swap is free....
Thanks,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2003 09:33 AM
06-16-2003 09:33 AM
Re: How to manage memory ???
A definition might help. HP-UX defines available memory as Physical Memory plus swap.
If you are having issues, one thing comes to mind.
All your swap areas have the same priority.
When I set up multiple areas I set them up in cascading priority. That one there is less I/O and channel contention when they are not all in use.
As I always do in such caes, I'm attaching a series of monitoring scripts that might help you pin down any problems.
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
06-16-2003 09:38 AM
06-16-2003 09:38 AM
Re: How to manage memory ???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2003 09:54 AM
06-16-2003 09:54 AM
Re: How to manage memory ???
You might find Technical Knowledge Base document #KBAN00000895 ("The facts about swap space, including a definition of pseudo swap") provides you will the insights you want.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2003 10:03 AM
06-16-2003 10:03 AM
Re: How to manage memory ???
The swapinfo output gives you the virtual memory configuration on your system.
The "total" means the total amount of process space.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2003 11:10 AM
06-16-2003 11:10 AM
Solution69% is a total of swap used+reservation. Whenever a process is started, the kernel will reserve swap for it for future use. This way the system ensures that there is enough space available in the swap area in case if it has to swap the process later.
I would be worried about the "KB Used" column appearing in only 'dev' rows. That is the amount of swap *physically* consumed by your processes. Your situation indicates that you may not have free memory. Use "vmstat 2 2" and look at the free pages column. Multiply with 4k and you will get the free memory in KB.
I would like to make one suggestion.
1. If vg03 has only one disk, then you may want to merge swap2 and swap3. Since these two are set to the same priority, interleaving will occur on the same disk and it will lead to slowdown.
2. If possible remove swap4 from vg00 and club it with either swap5 or in vg03 if possible.
3. Set the priorities to 0 for all the swap volumes in external volume groups and leave 1 for lvol2. Root disk will be the last one you would like to use for swapping.
I would configure the swap devices in the following way.
Device - Size - Priority
/dev/vg00/lvol2 - 2GB - 1
(you cannot change lvol2 now)
/dev/vg03/swap2 - 4 GB - 0
(if you have only one disk in vg03. if swap2 and swap3 are on different disks, then you can leave them as they are and change the priority to 0)
/dev/vg01/swap5 - 4 GB - 0
-Sri