First off: SAP has a long history of "recommending" certain amounts of swap. You can safely ignore these recommendations as they are complete nonsense.
If your system has some memory shortage it will start swapping. Once it does so you need the swap space and once this swap space it exhausted (or nearly exhausted) your system will start killing processes - so far, so common. But long before your swap space is exhausted you will have a severe performance degradation and you customers will be all over you to get the system back to speed - so far, so common either.
But as long as your system doesn't have a memory shortage you don't need swap space - *any* swap space! This means, while it is a god idea to have some swap space as a contingency you don't *need* it (under "normal" circumstances, which means there is indeed enough memory) at all.
SAP now recommends to configure swap space based on a simple formula: your current amount of memory times some factor (if i remember correctly it was 2). Would you increase your memory, which would make swapping even less probable their recommended amount would even increase, while there is a simple way to meet their requirements: reduce the memory of the system, which will make swapping occur more often, but SAP will recommend a smaller swap space for this (in fact now ill-tuned) system!
You see, their recommendation is simply bovine manure.
Historically the AIX kernel used an "early swap allocation" and allocated swap space for every started program, so the recommendation of SAP made - least some - sense back then. Since the days of AIX 5 (or was it with 5.1? A lot of years back for sure!) IBM changed that and now AIX uses late swap allocation. Since this change the recommendation makes no sense at all.
Regarding your error message: There is a parameter for each LV, which shows the maximum numbers of LPs that can be assigned to it. The command xoops told you will increase this maximum for the LV which holds your swap space. You can also do it using SMIT by issuing
and follow the menus on screen.
I hope this helps.
bakunin
Moderator's Comments:
BTW.: i have changed the threads title to "recommended".
While I totally agree with literally every word Bakunin said... if you start paging you do not need bigger paging spaces you need more memory A healthy AIX box with sufficient physical does not page (at least not after AIX 5.3 when lru_file_repage has been switched off as it should be).
I would like to add a few things.
If you start swapping, one of your major problems will not be the size of your paging space but how fast you can access it. So more smaller swapspaces of same size on different 'idle' disks make much more sense than one big slow swap area.
Apart from this, AIX cannot manage swapspaces bigger 34 GB. So if you want to go really with big paging areas, than create at least 2 of them - same size but smaller 34 GB.
Regarding SAP - actually their recommendation (and similar as well for oracle and sybase) on current AIX boxes with sufficient memory is
up to 4 GB memory - 2x size of memory + 256 MB
4 - 16 GB memory - size of memory
17+ GB - 1/2 size of memory + 4 GB
If your system has some memory shortage it will start swapping. Once it does so you need the swap space and once this swap space it exhausted (or nearly exhausted) your system will start killing processes - so far, so common.
Wait, what? Linux gets so much flap about its OOM-killer and other UNIX has them too?
Hi,
the /tmp size is less whereas the size allocated to swap is quite big. how to increase the size of /tmp -
#: swap -l
swapfile dev swaplo blocks free
/dev/md/dsk/d20 85,20 8 273096 273096
#: swap -s
total: 46875128k bytes allocated + 2347188k reserved =... (2 Replies)
Hi Experts,
Need your advise in determining the size of swap space in of the new HP-Ux server.
Server is having 32G of physical memory.
Ideally what amout of physical memory should be allocated as a swap space?
Following document from HP suggests to have minimum swap space... (2 Replies)
Hi All,
I want to know how to understand the actual swap size.
My o/p shows as below
root@ecovs1a # swap -s
total: 4546056k bytes allocated + 358856k reserved = 4904912k used, 5046688k available
root@ecovs1a # swap -l
swapfile dev swaplo blocks free
/dev/md/dsk/d31 ... (9 Replies)
Dear All,
How to increase the swap size when physicall memory reaches 60 %. OR it can be only done after the physicall memory is full.
Rgds
Rj (8 Replies)
few questions
a. where can I find the RAM of a server? im about to install redhat on a server (reformat). need to know because it will be my basis for swap size. i saw something line 3048MB detected upon boot. is this the memory?
b. what is the command in lunux to check the original size of... (2 Replies)
I have a machine: SunOS <server> 5.9 Generic_117171-15 sun4u sparc SUNW,Sun-Fire-480R
It has these filesystems:
Filesystem size used avail capacity Mounted on
/dev/md/dsk/d0 19G 15G 3.9G 80% /
/proc 0K 0K 0K 0% /proc... (6 Replies)
Hello all,
I just got a laptop with redhat linux 7.2 installed, but during the installation the installer only put 1gig of sawp space( this laptop has 1gig of RAM). To my understanding when creating swap space, the size is determine by double the RAM. Therefore my question is that how do I... (2 Replies)
Hy all,
i've a little problem with the size of the swap. I've an old solaris machine, with 4Go, and swap is taking 500Mo for only 1% used at any time.
So : how can i change this size without problems ?????
(ok it may be a stupid question, but it's a real problem when you lose about 1 or 2... (3 Replies)