vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Hi You cannot increase the primary swap, but you can add additional logical volumes and use them for secondary swap. If you use SAM for creating the LVols it already offers the usage as swap instead of for file systems. Manually its done by: lvcreate -L <size-in-MB> /dev/vgXX swapon /dev/vgXX/lvolX This activates the swap immediately until next reboot for permanent secondary swap edit /etc/fstab and add a line like /dev/vgXX/lvolX / swap defaults 0 0 Pay attention: The kernel parameter maxswapchunks must be set correct! maxswapchunks is 1 chunk for 2 MB RAM If maxswapchunks is not set large enough the additionalswap won't be used (without any notification). Florian |
| |||
| Hi > Can u add to the information by suggesting the optimal value of > maxswapchunks? As I wrote: 1 swapchunk corresponds to 2MB swap. So it depends on how large your swap shall be. If you will have 1 gigabyte swap, you have to set this parameter to 512 Florian. |
| ||||
| Florian Anwander wrote: > Hi > > >> Can u add to the information by suggesting the optimal value of >> maxswapchunks? > > As I wrote: 1 swapchunk corresponds to 2MB swap. Only with the default value of swchunk (2048). The formula is: System Swap = maxswapchunks * swchunk * 1k maxswapchunks has an upper bound of 16384, so you need to account for that if you want to go above 32Gb of swap and raise swchunk. http://docs.hp.com/en/TKP-90202/re38.html Don > So it depends on how large your swap shall be. If you will have 1 > gigabyte swap, you have to set this parameter to 512 |