- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- memory and swap
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
12-08-2003 03:42 AM
12-08-2003 03:42 AM
Once I know the memory what is goof way to calculte swap space instead of using 2Xmemory formula.
Any help is appreciated.
Thamks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2003 03:52 AM
12-08-2003 03:52 AM
Solutionto get RAM on your system
swapinfo -mat
for swap space configured.
For calculating swap space you need to know few things. Swap is required for every process because if it has to swap there should be space for that. This area is also used as dump area to store crash.(You can configure seperate area for this.)
so swap space at least should be equal to RAM, so in case if it has to swap, the whole contents of RAM will be swapped to swap space.
I personally prefer to put it at 1.5 times RAM.
Also with systems with larger RAM, you can use kernel parameter pseduo_swap and not have 1.5/2 times swap.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2003 03:53 AM
12-08-2003 03:53 AM
Re: memory and swap
I use this command:
echo "phys_mem_pages/D" | adb /stand/vmunix /dev/kmem|grep phys|tail -1|awk '{printf "%.0f Mb\n",$2/256}'
As a script check the attachment
Swap space:
Well I think the best is still twice memory.
Regards
Volkmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2003 03:53 AM
12-08-2003 03:53 AM
Re: memory and swap
It shows current ram and swap.
I'm attaching a script that shows how much physical memory is in each memory slot.
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
12-08-2003 04:16 AM
12-08-2003 04:16 AM
Re: memory and swap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2003 04:18 AM
12-08-2003 04:18 AM
Re: memory and swap
I get different numbers if i look at syslog and swapinfo -tam. WHy?
However in syslog my meemory is 4096K
and then I looked in sam for allocated swap
that was 2048 megabyes.
so according to the formula I shoud not have swap more than 8 or 9M and I have 2048M
My question is how does huge swap has an impact on performance?
Thanks again
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2003 04:33 AM
12-08-2003 04:33 AM
Re: memory and swap
Larger swap spaces have no impact on performance but do allow more processes to run. It's hard to put swap and performance in the same sentence because as soon as you start swapping to any signifant degree then you ain't performing.
You really need to look at the pageout rate (vmstat will show you this) and if it's anything above single digits for significant periods of time-- zero would be nice -- then you are swapping.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2003 04:38 AM
12-08-2003 04:38 AM
Re: memory and swap
I'm attaching a script that will capture performance data for you. The script runs background and collects data in a file.
I've recently gotten a bug out of it.
Calculaing swap space based on the 2x rule might not be the best idea on systems with a lot of memory. People are looking at 1.5 x ram lately depending on how stressed the box it.
swapinfo and syslog calculate memory a little different as A. Clay notes.
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
12-08-2003 05:02 AM
12-08-2003 05:02 AM
Re: memory and swap
Please explain.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2003 05:08 AM
12-08-2003 05:08 AM
Re: memory and swap
(.75) X 4GB = 3GB
+ 2GB of device swap = a total process space of 3GB + 2GB = 5GB.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2003 07:49 AM
12-08-2003 07:49 AM
Re: memory and swap
Thanks