1753630 Members
6101 Online
108798 Solutions
New Discussion юеВ

Memory swap command

 
SOLVED
Go to solution
Eli Daniel
Super Advisor

Memory swap command

hello,
I have a question
as I can see the size of virtual memory (swap)

which command to use?
7 REPLIES 7
Vijaykumar_1
Valued Contributor
Solution

Re: Memory swap command

#vmstat --> To check the virtual memory size

#swapinfo -tam --->will display the swap devices used.
mohammad_sa
Occasional Advisor

Re: Memory swap command

good evening

the command is

swapinfo

i hope i help you sir
Eli Daniel
Super Advisor

Re: Memory swap command

how increase the size memory swap?
Vijaykumar_1
Valued Contributor

Re: Memory swap command

Increase the particular Lvol.


# swapinfo -tam
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 18432 0 18432 0% 0 - 1 /dev/vg00/lvol2
reserve - 8643 -8643
total 18432 8643 9789 47% - 0 -


In this case it is lvol2
mohammad_sa
Occasional Advisor

Re: Memory swap command

this is the command

1- you must know what is the logical vol is the swap

2-execute this command

lvextend -L @@M /dev/vg##

@= the new size you need for the swap

## the vg number
Dennis Handly
Acclaimed Contributor

Re: Memory swap command

>Vijaykumar: # swapinfo -tam
reserve - 8643 -8643
total 18432 8643 9789 47%

Any reason you don't have pseudoswap enabled? swapmem_on(5)
Eli Daniel
Super Advisor

Re: Memory swap command

Thanks