Swap completely used with memory free


 
Thread Tools Search this Thread
Operating Systems Solaris Swap completely used with memory free
# 1  
Old 02-17-2016
Oracle Swap completely used with memory free

I have a Solaris 10 VM that processes are seg faulting on (no space) and swap goes from 64GB to 151MB which triggers the seg fault. The free memory is 25GB when this occurs. I have adjusted the project to use all available ram. My question is why is swap being filled with 25GB remaining?
the project is default.
# 2  
Old 02-18-2016
Hi,

What type of machine is the VM host, what is the host OS and what is the VM OS.

Gull04
# 3  
Old 02-18-2016
There is free memory (RAM) because the applications haven't write anything in it.

There is no more swap (assuming you are looking at "swap -s" output), because the applications have malloc'ed something like 80 GB or so and there is no more virtual memory to satisfy new allocations.

The processes are segfaulting because they do not check malloc return value.
# 4  
Old 02-18-2016
the VM is running on Vmware 5.5, the OS is Solaris 10 64-bit. this is a threading app that spawns 5 children per report process (so at a given time there are 20 children). Thanks for the replies on this so far. any additional settings in the OS that I should look at?
# 5  
Old 02-18-2016
You should state how much RAM is allocated to the VM, if you have capped the ZFS ARC (if ZFS is used), what commands you run to identify the RAM and swap usage and their output.
# 6  
Old 02-18-2016
RAM is 64GB allocated to the VM swap is 32GB
it is UFS arch
i am running vmstat while processing the reports. so vmstat 1 or vmstat -S 1
# 7  
Old 02-18-2016
You might just simply need to increase the swap area size from 32GB to 64 or 128GB.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. HP-UX

How much Swap memory do i have ?

here is the output of swapinfo command ==> swapinfo Kb Kb Kb PCT START/ Kb TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME dev 8192000 0 8184000 0% 0 - 1 /dev/vg00/swap reserve - 8184000 -8184000 memory ... (5 Replies)
Discussion started by: mohtashims
5 Replies

2. Shell Programming and Scripting

Swap usage by top and free command doesn't match

Its rather confusing, the output of top command is below: The "swap" field of top is described by the manpage as: "The swapped out portion of a task's total virtual memory image." But the output of free command suggests something else and it does tally with the output of swapon... (3 Replies)
Discussion started by: proactiveaditya
3 Replies

3. UNIX for Dummies Questions & Answers

[Query] Confusion of the Swap when using 'free -m' command

Hi All, I have just installed my first Linux server ( Ubuntu 11.10 ). I am sure I didn't allocate /swap , and double check by 'df -h', yes really no /swap but when I use 'free -m' , returned a "Swap" line as below. total used free shared buffers cached Mem: ... (3 Replies)
Discussion started by: joaming
3 Replies

4. UNIX for Advanced & Expert Users

Out of Memory error when free memory size is large

I was running a program and it stopped and showed "Out of Memory!". at that time, the RAM used by this process is around 4G and the free memory size of the machine is around 30G. Does anybody know what maybe the reason? this program is written with Perl. the OS of the machine is Solaris U8. And I... (1 Reply)
Discussion started by: lilili07
1 Replies

5. Solaris

how to get the more memory free space (see memory free column)

Hi all, Could please let me know how to get the more memory free space (not added the RAM) in local zone. -bash-3.00# vmstat 2 5 kthr memory page disk faults cpu r b w swap free re mf pi po fr de sr s0 s1 s1 s1 in sy cs us sy... (3 Replies)
Discussion started by: murthy76
3 Replies

6. Solaris

How to find Total and Free Physical Memory and Logical Memory in SOLARIS 9

Hi, Im working on Solaris 9 on SPARC-32 bit running on an Ultra-80, and I have to find out the following:- 1. Total Physical Memory in the system(total RAM). 2. Available Physical Memory(i.e. RAM Usage) 3. Total (Logical) Memory in the system 4. Available (Logical) Memory. I know... (4 Replies)
Discussion started by: 0ktalmagik
4 Replies

7. UNIX for Dummies Questions & Answers

Add SWAP to free slice

I'm interested in adding more swap space to my current workstation (Solaris 10). I currently have 2 hard drives installed, however the system was only created with 512MB for swap that resides on drive 1. This drive is already sliced up and all slices are being used. The second drive has two... (3 Replies)
Discussion started by: here2learn
3 Replies

8. UNIX for Dummies Questions & Answers

How do I find out how much swap and memory is free?

In Solaris 2.6 and 8 How do I find out how much swap and memory is free? Also how can I see how much memory each process is consuming? Thanks in advance (2 Replies)
Discussion started by: expos
2 Replies

9. Solaris

swap memory

Hi Can any help me on setting the swap memory ? I would like to set swap memory for installing oracle 9i software. RAM - 512 Mb HDD - 40 Gb OS - Sun Solaris 5.9 (6 Replies)
Discussion started by: sivaramat
6 Replies

10. Filesystems, Disks and Memory

Total Memory/Swap Memory

I need to put a program together to determine the total, available memory and total and available swap on unix machines. I have been searching for weeks and I seem to run into dead ends. Every unix platform I look at has a different way to determine memory info. Any sugggestions or new... (4 Replies)
Discussion started by: ghe1
4 Replies
Login or Register to Ask a Question