No Space Left - Memory/Swap issue


 
Thread Tools Search this Thread
Operating Systems Solaris No Space Left - Memory/Swap issue
# 8  
Old 02-17-2011
Quote:
Originally Posted by bartus11
You cannot think of available memory as "physical + swap". Swap is only used as backup in case of physical memory shortage, which Solaris requires for every running process. So to avoid errors you should have few GB of swap more.
Oh, I completely agree. But with almost 900MB free physical memory, why is this necessary?
# 9  
Old 02-17-2011
Are you asking why swap is necessary? It is how this system works Smilie It needs to be always sure that when available physical memory drops to zero, it will have disk space to send processes and their data to, to free it up. And from your vmstat output it seems that you may have real swap shortage. ~500MB of free swap is really not enough.
# 10  
Old 02-17-2011
Quote:
Originally Posted by bartus11
Are you asking why swap is necessary? It is how this system works Smilie It needs to be always sure that when available physical memory drops to zero, it will have disk space to send processes and their data to, to free it up. And from your vmstat output it seems that you may have real swap shortage. ~500MB of free swap is really not enough.
No, I completely agree. But why is the system not using any of the remaining physical memory? Also, shouldn't we be seeing scan reads?

I realize that part of physical memory is used for swap and then there is "disk" swap space. I'm just not understanding why our system isn't using the remaining 900MB of physical (or at least 500 of it, with the 500MB remaining swap).
# 11  
Old 02-17-2011
How much free physical memory you have is irrelevant. Free memory is part of virtual memory so is backing reservation too. You are confusing memory reservation and usage.
# 12  
Old 02-17-2011
Well, I didn't hear about using part of physical memory as swap, but main rule I learned while working with SunOS is that there should be always a bit more swap than physical memory available. I don't know exact mechanics behind memory management in Solaris though Smilie
# 13  
Old 02-17-2011
Quote:
Originally Posted by jlliagre
How much free physical memory you have is irrelevant. Free memory is part of virtual memory so is backing reservation too. You are confusing memory reservation and usage.
That all makes sense, I guess I just would have assumed a vmstat would have shown the system scanning for any unreserved memory to use.

From what I'm seeing, it's like my system has used all the swap it can, all the memory it can and the remaining is reserved. But, at that point I would think it would begin scanning to free memory. That's usually what I would expect.
# 14  
Old 02-17-2011
Quote:
Originally Posted by bartus11
Well, I didn't hear about using part of physical memory as swap
That depends on what definition of swap you take. When swaps means virtual memory like in the statistics posted, it does.
Quote:
but main rule I learned while working with SunOS is that there should be always a bit more swap than memory available.
Not necessarily. The rule is there must be enough virtual memory for all reservation to fit. The amount of memory needed is not related to the amount of RAM installed but is related to the number of applications and their requirements.

---------- Post updated at 00:23 ---------- Previous update was at 00:19 ----------

Quote:
Originally Posted by aychbee45
That all makes sense, I guess I just would have assumed a vmstat would have shown the system scanning for any unreserved memory to use.

From what I'm seeing, it's like my system has used all the swap it can, all the memory it can and the remaining is reserved. But, at that point I would think it would begin scanning to free memory. That's usually what I would expect.
You are confusing physical and virtual memory. The page scanner (if this is what you are referring to) is there to scan used physical memory in case of demand to page it out. This mechanism has no relationship with virtual memory reservations.
This User Gave Thanks to jlliagre For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Linux

No space left on device while there is plenty of space available

Hello all posting here after scanning the net and tried most of the things offered still no solution that worked when I do : $ df -h Filesystem Size Used Avail Use% Mounted on footmpfs 7.9G 60K 7.9G 1% /dev tmpfs 7.9G 0 7.9G 0% /dev/shm /dev/da1 ... (3 Replies)
Discussion started by: umen
3 Replies

2. AIX

AIX swap space, physical memory & cache

Hi, I am new to AIX, Can someone please help me how to know the swap space, total physical memory and system cache? We are using AIX 5.3. Thanks! (3 Replies)
Discussion started by: Phaneendra G
3 Replies

3. Linux

Swap memory issue

Hi, In our production box i can see the Swap space using the below command free total used free shared buffers cached Mem: 65963232 41041084 24922148 0 877160 35936292 -/+ buffers/cache: 4227632 61735600 Swap: 4192880 ... (6 Replies)
Discussion started by: ratheeshjulk
6 Replies

4. UNIX for Advanced & Expert Users

Swap space issue

I have Solaris-10 with mutiple zones running in it. My Big Brother monitoring is complaining for very less swap space available, but I am not able to find, what process has consumed its swap space and how to clear it. All zones including global server have almost blank /tmp with very less data.... (3 Replies)
Discussion started by: solaris_1977
3 Replies

5. HP-UX

Swap space issue.

Hi, I am not sure how many scripts / java processes running on my HP-UX server. I need to calculate the total heap of these processes. I then need to recommend increasing the swap memory to be increase and equal to total heap if that is the right concept. Currently we are facing... (2 Replies)
Discussion started by: mohtashims
2 Replies

6. Solaris

No space left on device but free space and inodes are available...

hi guys, me again ;) i recently opened a thread about physical to zone migration. My zone is mounted over a "bigger" LUN (500GB) and step is now to move the old files, from the physical server, to my zone. We are talking about 22mio of files. i used rsync to do that and every time at... (8 Replies)
Discussion started by: beta17
8 Replies

7. Solaris

swap space issue

HI All, Recently during oracle install I realized that I did not have enough swap space. So I - 1. Created a swap file "swap_fille1" in /rpool using mkfile - # ls -ltr /rpool total 10487121 drwxr-xr-x 3 root root 3 Dec 21 12:09 boot drwxr-xr-x 2 root root ... (10 Replies)
Discussion started by: sumeet
10 Replies

8. UNIX for Advanced & Expert Users

Issue with insufficient swap or memory space

Hi, When I execute one of my shellscript I am getting the below mentioned error message .This application takes 2input files which have the records counts 26463 and 1178046 exec(2): insufficient swap or memory available. exec(2): insufficient swap or memory available. exec(2): insufficient swap... (3 Replies)
Discussion started by: kavithakuttyk
3 Replies

9. Shell Programming and Scripting

Issue with insufficient swap or memory space

Hi, When I execute one of my shellscript I am getting the below mentioned error message .This application takes 2input files which have the records counts 26463 and 1178046 exec(2): insufficient swap or memory available. exec(2): insufficient swap or memory available. exec(2):... (2 Replies)
Discussion started by: kavithakuttyk
2 Replies

10. HP-UX

swap space (lvol2) is not using when physical memory is 98% used

Dear all I have rp7620 sever with hp-ux 11.23 this swap space is not yet used when the physical memory usage of 98 %. through openview it's shows memory bottleneck . how to resolve the problem. Rajesh (1 Reply)
Discussion started by: rajeshtt32
1 Replies
Login or Register to Ask a Question