SWAP SIZE Recommended.


 
Thread Tools Search this Thread
Operating Systems AIX SWAP SIZE Recommended.
# 1  
Old 10-13-2011
SWAP SIZE Recommended.

Dear All,

During installation of SAP, it shows like below :

Code:
Condition : Swap Size
Result Code : Condition not met
Severity : MEDIUM
Message : For the selected services at least 74228 MB swap space are recommended. Current value: 65536 MB. (Updated 2005-06-24)

I am working on AIX OS.

Output of "lsps -a" is :
Code:
# lsps -a
Page Space      Physical Volume   Volume Group Size %Used Active  Auto  Type Chk
sum
hd6             hdisk0            rootvg       65536MB     1   yes   yes    lv

0

Before it's size is of 40128MB, i extended it up to above value.
But from that, i cant extended it as per the requirement mentioned above.

If i try to extend it shows as :
Code:
# extendlv hd6 1G
0516-787 extendlv: Maximum allocation for logical volume hd6
        is 512.

Please suggest me, How to proceed further, or is there any other way.

Waiting for your replies,
Thanks in advance,

Regards
Vamsi.

Last edited by pludi; 10-13-2011 at 05:17 AM..
# 2  
Old 10-13-2011
try
Code:
 
chlv -x <no of lps> < lvname>

# 3  
Old 10-13-2011
Hi xoops,

Can you please let me know, exactly what the command does?

Regards
Vamsi.
# 4  
Old 10-13-2011
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

Code:
smitty chlv

and follow the menus on screen.

I hope this helps.

bakunin

Moderator's Comments:
Mod Comment BTW.: i have changed the threads title to "recommended".

Last edited by bakunin; 10-13-2011 at 06:30 AM..
# 5  
Old 10-13-2011
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 Smilie 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

Regards
zxmaus
# 6  
Old 10-13-2011
Quote:
Originally Posted by bakunin
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?
# 7  
Old 10-13-2011
on AIX its a tunable where you say kill processes and survive or die and reboot Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

/tmp size is less whereas size allocated to swap is more

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)
Discussion started by: psb74
2 Replies

2. HP-UX

Determing size of swap space

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)
Discussion started by: sai_2507
2 Replies

3. Solaris

Help on Understanding Swap Size

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)
Discussion started by: vivek.goel.piet
9 Replies

4. Solaris

Swap size increase

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)
Discussion started by: jegaraman
8 Replies

5. UNIX for Dummies Questions & Answers

swap memory and original size of HD

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)
Discussion started by: lhareigh890
2 Replies

6. Programming

Swap different size string

how can I write a function to swap to different sized string? (2 Replies)
Discussion started by: rupeshkp728
2 Replies

7. Solaris

Weird swap size on Solaris 9

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)
Discussion started by: son_t
6 Replies

8. HP-UX

Increasing swap size

We increased our server's RAM 8 -> 32 GB RAM. swap memory is currently 10 GB. With which command I can increase this memory? (1 Reply)
Discussion started by: akyuceisik
1 Replies

9. UNIX for Dummies Questions & Answers

chang swap size after install

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)
Discussion started by: larry
2 Replies

10. UNIX for Dummies Questions & Answers

Size of swap

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)
Discussion started by: Olivier
3 Replies
Login or Register to Ask a Question