SWAP memory

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat SWAP memory
# 8  
Old 01-01-2015
Quote:
Originally Posted by leo_ultra_leo
My box living with another VMs in the same host, so I don't want my box swap the others!
Then don't use any RAM on your VM. Kinda hard to do, but preventing other VMs from swapping is related to how much RAM you actively use.

RAM use is what forces other things in memory to be swapped out. The swap device is merely the persistent storage where the OS copies contents of physical memory that is needed by something else.

How much swapping is happening on the physical server is something the admins of that server have to deal with. Depending on how many VMs are hosted on the physical server, the swapping caused by your one machine might be about as significant as tossing rocks into the ocean during a storm. Yeah, your rocks still make waves but you can't even seem them.

Any system running as a VM that uses enough resources to starve out other VMs on the same physical host should IMO not be running as a VM - it needs it's own physical host. Even if you're virtualizing such a system for reliability - so you can migrate it in case of a hardware failure - you still need to keep enough physical server resources in reserve to account for that. In that case, run a physical active-active cluster and get better performance when running normally and probably much faster if not totally transparent failover in a failure scenario.

And if you're just outsourcing the physical hardware admin by using "the cloud" and getting pushback from your cloud provider for using too much resources, that's a contract issue between you and your cloud provider.

"The cloud" is pretty much just mainframe-computer era timesharing. It's "run and save my stuff on another person's computer". Sure, there's a LOT more functionality and we can do a lot more now as technology and performance have improved by leaps and bounds. There are some tremendous advantages to that as you can get access to enterprise-level availability, reliability, and even security without shouldering the entire cost of such infrastructure, but it's still just "run and save my stuff on another person's computer".
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. 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

2. Red Hat

Swap memory

Hi team, Is there any ability to force the system to use the swap memory for a specific service? And prevent another service of using the swap memory? Thanks (2 Replies)
Discussion started by: leo_ultra_leo
2 Replies

3. 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

4. UNIX for Dummies Questions & Answers

Is swap and Shared memory the same ?

In Linux, Unix environments Is swap and Shared memory the same ? In Linux, swap is mounted on /dev/shm ? I am wondering if the naming of 'shm' has anything to do with Shared memory ? (3 Replies)
Discussion started by: kraljic
3 Replies

5. UNIX for Dummies Questions & Answers

Threshold for swap memory

hi guys the monitoring team is using a tool for monitoring linux boxes and they set an alarm for swap memory to 10%(critical) I really has no idea when swap memory usage is high.... Can someone recommend me a threshold for this? when is warning or critical and this parameters can affect... (3 Replies)
Discussion started by: karlochacon
3 Replies

6. UNIX for Advanced & Expert Users

Query regarding swap memory

Hi, Please help explain and answer the below: 1. I need to predetermine how much swap will my JVM use if it is started with -Xms 512M and -Xmx 1024M ? 2. Can a JVM process just use the Heap and not the Swap memory ? 3. If the Total physical RAM on my server is 8 GB and current Heap... (6 Replies)
Discussion started by: mohtashims
6 Replies

7. UNIX for Dummies Questions & Answers

swap memory

Hi, I want to see used swap memory I know that for this there is command free -m but this shows Swap: 16383 4529 11854 by top command while load is 1.05 max CPU % 24 mysqld why used swap shows 4529 either it is not flushed there is other command... (2 Replies)
Discussion started by: kaushik02018
2 Replies

8. Solaris

Solaris 10 - Memory / Swap

Hi all Got myself in a pickle here, chasing my own tail and am confused. Im trying to work out memory / swap on my solaris 10 server, that Im using zones on. Server A has 32Gb of raw memory, ZFS across the root /mirror drives. # prtdiag -v | grep mem = Memory size: 32768 Megabytes #... (1 Reply)
Discussion started by: sbk1972
1 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