How does swap in Linux work?

I thought I knew, but I am not so sure anymore.
I have 4GB ram and 2GB swap (I know it works because I even have hibernation), fast SATA HDD and Core 2 Duo.
On occasions I run opera (~1GB), and two virtual machines. As soon as RAM utilization goes in the vicinity of 3.8GB, my system becomes totally unresponsive and to recover it, I try to close opera window, but the first challenge is to actually move a mouse, and the second to wait about a minute before the click takes any effect.
I was thinking of putting swap on a USB flash drive to make things fast, but judging from this, it does not look like swap is being used at all.

meph wrote:This is odd. I'm starting to doubt that it's caused by swapping itself. Just think about it, how does running out of memory present itself? It could hang, it could give you all sorts of error messages, but being unresponsive without any errors is weird. It means that the system is actually running but is being slowed down by something. Misbehaving process, whatever.
I don't know. Windows behaves pretty much as my Arch when it runs out of memory.
meph wrote:
1) Try using swap file instead. Using it will mean that different physical location on your hdd will be used, and also that it will use your root partition, which is known to work well (i guess?). If it still misbehaves after you start using it, you will rule out faulty hdd (however unlikely that already is).
2) Did you ever have this problem without using your VM's? Try and use all your memory without running those, and see what happens. For example opening a dvd image in a text editor could work? Just fill your memory with random garbage and see what happens, and while doing that you may want to watch htop again. This should rule out a problem in whatever virtualization software you're using.
3) Try and turn swap off before trying to induce the problem. Again, this is about knowing how exactly will your system behave when it actually runs out of memory. Expected outcome is flooding you with error messages about killing processess, but the system should remain somewhat responsive. Cluttered and obviously not working well, but responsive. This step could help identify a memory defect, obviously the next step would be running a memtest.
4) This one is rather obvious and I suppose you already did it, but look carefully into your log files, especially kernel.log. Or better yet, induce the problem, take a precise note about when exactly things started to go bad, and then look for errors in your logs around that time.
1. That's quite a bother. I gonna have to do it a little bit later, if you think it is absolutely necessary.
2. I opened two ISO files (2GB each) with geany, and the result was pretty much the same, except this time swap usage went up to 700MB, but that could be because htop managed to refres after 2-3 minutes, while previously it did not. But the system was freezing up pretty much the same way.
3. Again, the result is similar. Maybe the system is a bit more responsive, especially in the first minute of running on full RAM, but afterwards everything else locks up, too. Still, the mouse is movable for most of the time, but it could be a coincidence.
silentsnake,
I usually have +20 tabs opened in my browser. I think opera is doing a fairly good job. Certainly better than firefox.
The easiest solution would be to buy more RAM. RAM is very cheap - you can get 4x4 GB (16 GB total) for around 80 €.
Yeah, I wish I was running DDR3. The cheapest 4GB SODIMM DDR2 module on ebay.co.uk is almost £60

Similar Messages

  • Is it possible to have your whole family on one apple id or is it better to have each person have there own? If each has their own does each id have to buy their own music and apps? How does find my iphone work with one apple id or two?

    Is it possible to have your whole family on one apple id or is it better to have each person have there own? If each has their own does each id have to buy their own music and apps? How does find my iphone work with one apple id or two? also I am going to be going off to college soon should I make an itunes id for my self and how will I get all the music from the old id?

    Is it possible to have your whole family on one apple id or is it better to have each person have there own?
    Yes, it is possible. 1 apple ID can be associated with up to 10 devices.
    If each has their own does each id have to buy their own music and apps?
    Yes, all purchases are non-transferable.
    How does find my iphone work with one apple id or two?
    Every device associated with one apple ID through Find my iPhone is tied to that Apple ID; Find my iPhone will work in the same way with up to ten devices associated with one apple ID. You cannot enable Find my iPhone for one device across two apple IDs
    I am going to be going off to college soon should I make an itunes id for my self and how will I get all the music from the old id?
    If you have authorized a computer with the old apple ID, you can transfer old media purchased through the old to other devices via iTunes. This doesn't mean the media purchases through the old apple ID it transferred to the new account. If you plan to make future purchases and don't wish to share them with others, make your own apple ID.

  • How does this IMPORT statement works

    can any one tell me how does this statement will work..
    I am wokring on Solution manager system , where in there is a function module SSF_FIELD_LIST
    to which system passes form name.
      import fields to fieldlist
             from database stxfcontr(sf) id l_fullname.
    stxfcontr is a table which contains value of in  a diff
    Regards,
    mayank

    It will import data object stored in memory under named fields to your custom data object fieldlist .
    The table which it is stored is name stxfcontr under RELID (memory area) SF .
    Cluster key (key of the entry) in that table is behind var l_fullname
    Anyhow I think [this link|http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3bf8358411d1829f0000e829fbfe/frameset.htm] is more that any explanation. Once you study it, you will understand the above.
    Regards
    Marcin

  • How does the event structure work & ...

    How does the event structure work & and how to modify the case example if you want to change the name of the case? I haven't a look at the manual but nothing about event structure is mentioned.

    I know how it works.. =P

  • How does "notify me" actually work in mail app

    Might be a daft question, but how does "notify me" actually work in iPhone email app?
    I get the principal but surely when you get a reply thats already noticed you?
    Could someone advise me how it actually notifies and is it in addition to receiving the reply to the mail?

    I have the columns in place. But I have a few questions -
    1. Iis there some kind of audit trail report on the updates to my record to the table? If so how do I get to see?
    2. Am I expected to create a <entity name>_HISTORY table for this to work? I see some such recommendation  here .

  • How does mix and match works in ECC6.0?

    How does mix and match works in ECC 6.0?
    Can some shared on this topic?
    Thanks in advance

    It;s a term used in Retail for combination of sales item eg buy 3 get 1 any other  @ xx price.

  • How does the verizon wifi work? Do you pay monthly?

    I want to buy the new iPad with retina display as a gift, but how does this verizon wifi work? Do you pay monthly or have to call Verizon?

    You're post is a little confusing. WiFi signals are not done through Verizon unless you are talking about using a Verizon MiFi hotspot such as this http://www.verizonwireless.com/b2c/store/controller?&item=phoneFirst&action=view PhoneOverviewByDevice&deviceCategoryId=13&cmp=KNC-58700000028195084&zipRdr=y.
    4G wireless cell signals are done through Verizon. WiFi comes from places such as your home wireless network, or WiFi hotspots at places like Starbucks, restaurants, pubs, etc.
    If you are asking about Verizon's wireless cell service, it's $20 a month for 1 gig of data, $30 a month for 2 gigs of data, or $50 a month for 5 gigs of data.

  • How does the notify() call work in Java?

    Hi!
    Can someone help me:
    How does the notify() call work in Java?
    H�var

    Java's Thread Tutorial
    JavaWorld: Introduction to Java threads
    IBM: Introduction to Java threads
    Google: java+threads+tutorial

  • How does the copy button work in safari for ipad (copy button under facebbok share button)?

    How does the copy button work in safari for ipad (copy button under facebbok share button)?

    On a website ...  
    Tap the Action icon bottom of that window. (white square with a right facing arrow) then tap Facebook.
    You should see the following depending on the what content the website can share.
    Copy / Mail / Message / Twitter / Print  / Bookmark

  • How does the Passbook application work? How am I able to import my plane ticket, concert ticket etc into Passbook?

    How does the Passbook application work? How am I able to import my plane ticket, concert ticket etc into Passbook?

    Try the following to fix the iTunes Can't Connect issue that you are having:
    Open Settings.
    Open General.
    Open Date & Time.
    Switch the Set Automatically setting to Off.
    Open Set Date & Time.
    Set the date to a year ahead.
    Go back to the Home screen and open Passbook.
    Tap the App Store button. The App Store should load.
    Go back to Date & Time and turn on Set Automatically.
    Thanks to: https://discussions.apple.com/message/19622208#19622208

  • How does the newest Iphone work with Ford Sync?

    How does the new Iphone work with Ford Sync? I was thinking of purchasing the 4s but may go elsewhere if there is a better phone for the equipment in my vehicle.

    That would be a NO.. I should have done my homework before I switched to IPhone because the Bluetooth just does not want to sync with my Ford Truck. Its such an inconvience. But I see from other posts that Ford isn't the only car experiencing problems. So Hopefully Apple fixes this problem QUICKLY!

  • HT4914 How does the payment method work for iTunes Match?

    How does the payment method work with iTunes Match. For example, if you have a gift card, does it take it out of that. Or is there tax? What if you cancel your subscription in the middle of the year, does it take the money for that year or not? If someone could answer those questions it would be greatly apreciated. And if anyone has their own questions, feel free to ask. Thank you.

    Hi HLFrank,
    Welcome to Adobe Forum,
    You can opt for monthly payment in a yearly contract or pay at one go for an year.
    Please check the option at http://www.adobe.com/in/products/creativecloud/buying-guide.html
    Regards,
    Rajshree

  • HT201365 How does find my iPhone work as far as finding it?

    How does find my phone work if I can't find it?

    it uses the location services to locate it. but the phone has to be on and connected to some sort of internet (cellular or wifi)

  • How does premiere pro CC work with nvidia GT 630M (2GB) vega???!

    how does premiere pro CC work with nvidia GT 630M (2GB) vega????!

    That will work. I would just not expect major performance with a heavier load on playback.
    Eric
    ADK

  • How does business catalyst really work?

    So i've tried to reach this and cant seem to find answers in plain english.... How does Business Catalyst really work?.. functionally.
    1) I have a hosting service with godaddy and jumpline, I have a lot of space and do all of my client's websites through the space I have with those two plans, do they offer the business catalyst format? Just buy that platform with them or have it added?
    2) I have CC, business catalyst "comes with" it.... how does that work? Am I given space on someone elses server somewhere or do I just have the ability to upload the BC software onto a server I have... in which case could it be uploaded to godaddy or jumpline?
    3) The new MUSE features can only be done with business catalyst right?

    Hi,
    Business Catalyst is a web hosting platform that lets web designers host, build, and sell websites to clients. You use Muse to create and update a website. You use Business Catalyst to host it. A Muse subscription includes free hosting on Business Catalyst for one site. A Creative Cloud membership includes free hosting for five sites.
    Regarding your Creative Cloud Subscription, with BC. You must install and use Muse/Dreamweaver to publish your free sites. For More details, Please refer to the article below
    http://helpx.adobe.com/business-catalyst/using/business-catalyst-muse-users.html
    The new Muse feature, like in Browser editing is compatible only with Business Catalyst, but the other feature like Parallex Scrolling works on all the other hosting as well, like Godaddy.
    If you still have any query, please let us know and we will try to resolve it.
    Thanks.

Maybe you are looking for