I googled but couldn't figure out where the swap space is.
man swap says swap -s counts in swap space in both disk and physical memory. The system should have more than 8G available swap space right? How come the total available 859648k in output of swap -s is much less than free space in o/p of swap -l (8G) ? Am I missing anything here?
These commands are measuring different things even while they share the same name (swap).
"swap -l" is telling the swap area (i.e. on disk) whole size and free size.
"swap -s" is reporting virtual memory usage.
It seems your whole virtual memory size is 11.5 GB while you have 32 GB or RAM and 8 GB of swap space. I would guess you are using a big bunch of kernel RAM, which isn't virtual memory, likely for ZFS cache.
So you mean the o/p of swap -s doesn't include swap in disk at all? I did a test on my x86 Solaris 10 VM by adding a 1G swap device. The "available" size of "swap -s" WAS increased by 1G accordingly:
Is it possible that the "free" showed by swap -l is incorrect? Looks quite confusing to me.
Hmm, 16 GB used by the kernel, that's a lot of RAM ...
Are you running LDOMs and/or zones on that box ?
Is there some resource capping in place ?
Quote:
So you mean the o/p of swap -s doesn't include swap in disk at all?
No. I only mean these metrics are not strictly related. For example, you can run out of swap (as reported by swap -s) with all swap space free (swap -l) and even plenty of RAM available. Free virtual memory and free swap are different concepts, although your tests demonstrate there is a relation between them.
By the way, as your swapfile is reported to be unused, did you try to remove it (swap -d ...) and see how the "swap -s" figures evolve. Also, how is adding a new swap device (you can use a file for testing) impacting your measurements ?
CENT OS 5.8 server running with a huge java application which uses up all my ram (4GB) and requires excess of atleast 2GB.But the swap is not getting used up((8GB) of swap space left unused) leading a wierd error and stopping application to stop working.
Any one here dealt with the same kind of... (2 Replies)
Dear All,
I have a swap space of 16G available in Sol 10. I have allocated it as a seperate file system. But when the RAM Is full used , the system gets rebooted and the swap is not being used,.
Any reasons for this.
Rgds
Rj (5 Replies)
Hi,
i have done a blunder here, i increased the swap space on Xen5.6 server machine using below steps :-
1056 dd if=/dev/zero of=/root/myswapfile bs=1M count=1024
1057 ls -l /root/myswapfile
1058 chmod 600 /root/myswapfile
1059 mkswap /root/myswapfile
1060 swapon /root/myswapfile
... (1 Reply)
Could someone please explain how you know how much swap space you have on your system. See below:
# swap -s
total: 8225048k bytes allocated + 4863488k reserved = 13088536k used, 4008032k available
# swap -l
swapfile dev swaplo blocks free
/dev/dsk/c3t0d0s1 32,25 16... (2 Replies)
hi,
i am a little bit confused over swap space issues on solaris.
what i know is that mostly all solaris swap space is configured on /tmp as a tmpfs.
but i do receive alerts from my monitoring server that one of my server has exceeded 95% treshold. when checked at tmp, it shows only 12%.
... (1 Reply)
All,
I am using SOLARIS 7. I have formated my hard drive to consist of only 150MB of swap space. This isn't enough considering I am running Oracle. How do I create additional swap space?
Please list sources or commands.
PS mkswap doesn't work on my machine. ( I have swap and... (5 Replies)