My system just won't use SWAP

I have everything configured. My swap is 2gb of size, swappiness is at 40, fstab is fine.
When I start running out of RAM memory, the system just becomes totally unresponsive, and yet the swap utilisation stays at 0%.
$ free
total used free shared buffers cached
Mem: 4052008 2746176 1305832 0 126492 965644
-/+ buffers/cache: 1654040 2397968
Swap: 2184188 0 2184188
# /etc/fstab: static file system information
# <file system> <dir> <type> <options> <dump> <pass>
#devpts /dev/pts devpts defaults 0 0
#shm /dev/shm tmpfs nodev,nosuid 0 0
tmpfs /tmp tmpfs nodev,nosuid 0 0
/dev/sr0 /media/dvd auto ro,user,noauto,unhide 0 0
/dev/sda1 /mnt/Disk_D ext4 defaults,noatime 0 2
/dev/sda2 / ext4 defaults,user_xattr,noatime 0 1
/dev/sda3 /mnt/win ntfs-3g defaults,noatime,locale=en_US.utf8 0 0
/dev/sda5 none swap defaults 0 0
I am on systemd now, but it was the case since always, even before I moved.
Does anyone have any idea what could be wrong?

This is my take, which might not describe reality properly:
Low swappiness favours keeping programs in memory and dropping cache, high swappiness means swapping unused (least recently used) portions of programs in favour of cache. Programs can work properly with a big part of them swapped out. They also need cache. If the part of the program you want to access got swapped out or the program doesn't have the stuff it wants to use in cache, it needs to use the disk, hence one perceives a greater delay.
When you run the script, it continuously asks for more and more memory, it creates great memory pressure, so caches have to be dropped and least recently used parts of programs swapped out. Dropping cache is instantaneous, swapping out needs writing to the disk. Heavy swapping causes lack of responsiveness (light swapping out shouldn't be perceivable). How much swapping out occurs when running the script depends on how much the kernel deems viable for swapping out - the longer the system runs and the greater the amount of rarely used memory, the greater the amount that can be swapped out.
The output of your "free" shows more than 1 GB free - the kernel shouldn't worry about swapping out or dropping cache at that point, whatever the swappiness.
I prefer to have swappiness set to at least 60, so that unused portions of programs get slowly swapped out while my caches grow (my X takes 33 MB of my swap and 25 MB of my RAM at the moment).

Similar Messages

  • [SOLVED] System freezes when starts using swap

    When my system starts using swap, it completely freezes. Switching to tty doesn't work either.
    There is already a topic on this problem, but the only advice it has is "use zswap" or "do not open 20 tabs at the same time", which is not really a solution imho.
    I'm using a swap file in my home dir with swapon.
    Last edited by TheChosenOne (2014-02-19 20:00:05)

    There is not much configuration going on.
    What I do is this.
    I'm kind of new to Arch Linux (used Ubuntu for a long time). How can I enable or see logs in Arch?

  • System just won't work...

    After upgrading to Leopard (Archive and Upgrade), my MacBook Pro is non-responsive.
    Upon boot, I see the dock and my applications starting up (iCal, NeoOffice, QS, X, etc). After a couple seconds, the dock, all of my desktop icons, and the finder bar disappear. I'm left with a mouse cursor on my desktop.
    I can boot into "Safe Boot" mode and Leopard comes up.
    Any ideas? Anything I should try? Should I just scrap this installation and erase the harddrive?
    Thanks
    -Eddie

    There are no recent crash logs in ~/Library/Logs, but two from yesterday (this has been a long upgrade) in /Library/Logs.
    The crashed process is mdworker in both logs.
    I'm also showing a ton of airport errors in the generic console log.
    Thanks,
    -Eddie

  • I am not able to open my 'system preferences' it shows up on top, but the window just won't open. I haven't installed anything new, I have also restarted my computer, but still encounter this problem. Help?

    I am not able to open my 'system preferences' it shows up on top, but the window just won't open. I haven't installed anything new, I have also restarted my computer, but still encounter this problem. Help?

    Reinstall Lion, Mountain Lion, or Mavericks without erasing drive
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Repair
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported then click on the Repair Permissions button. When the process is completed, then quit DU and return to the main menu.
    Reinstall Lion, Mountain Lion, or Mavericks
    OS X Mavericks- Reinstall OS X
    OS X Mountain Lion- Reinstall OS X
    OS X Lion- Reinstall Mac OS X
         Note: You will need an active Internet connection. I suggest using Ethernet
                     if possible because it is three times faster than wireless.

  • My iPhone 5 won't use 3G when 4G isn't available. I live in the middle of nowhere, but with my iPhone 4 I could use the Internet on 3G just fine. Now I don't get anything unless I'm on wifi. I have AT

    My iPhone 5 won't use 3G when 4G isn't available. I live in the middle of nowhere, but with my iPhone 4 I could use the Internet on 3G just fine without needing wifi. Now I don't get anything unless I'm on wifi. My phone says '4G' but then says 'could not activate cellular data' or gives me the gray google failed because you dont have internet page. I have AT&amp;T if that matters. I just want to get Internet and my email like I used to be able to. Slow 3G is fine with me, but I need it to work on my iPhone 5. Can anyone help me?

    Oh ok, thank you! So I just got a bum SIM card when I bought this phone or something?

  • I recently bought some songs from itunes, and I tried to sync my mac air laptop to my nano ipod, but it didn't work. I usually use my PC computer to do this, and my music is in the itunes library on my mac, it just won't sync to my ipod. Any ideas?Thanks!

    I recently bought some songs from itunes, and I tried to sync my mac air laptop to my nano ipod, but it didn't work. I usually use my PC computer to do this, and my music is in the itunes library on my mac, it just won't sync to my ipod. When I tried to sync my ipod to my PC to see if the computer was the problem, my recently purchased songs still didn't show up. Any ideas as to what to do? Thanks!

    http://www.everythingicafe.com/quick-tips-how-to-delete-songs-from-your-iphone-i pad-or-ipod-touch/2012/02/14/

  • Hello hi, i just won't to ask, if there has been any changes on how to find a stolen phone, did some one come up with a fare and good solution. as it is not fare at all when some one could use it for free and there is a lot of things could be done to this

    hello hi, i just won't to ask, if there has been any changes on how to find a stolen phone, did some one come up with a fare and good solution, new Apps. as it is not fare at all when some one could use it for free and there is a lot of things could be done to this condition, no one seem to care,
    i have a story about my sister, am talking on her behalf, she got stolen her phone at a caffee when she just come from a horeble exam, she was very mad and having haedace for not doing well at the exam, i ask her if we could have coffee before we go home, once she sate; while i was getting the coffee for her, some one snicked to her pocket and took the phone, immidatly she feelt it and went on to searching, but nathing was hopefull. what makes it more heart braking is that she worked day and night just to buy the phone and pay for her books and so on as a student. she use to work 16 houres a day before she had to start school. 8 houres in one place and then to the other place. and she was always demanding for more houres to work; one day her boss saw her on her other job and she was serprised to see her and saied OHhh my God Milly if you work like this, i wonder if you servive, how could you also ask for more houres, My sis had to do it she has no parents or any thing, well the phone was taken after only two months of having it. the sad thing is she stile dream having it even though she can't think of buying againe. well me i have tryed a lot of things but i know some were out there there is a solution for people like this, it is not always fare for some one who has payed up to 800 to just loose his ......  
    Thnks

    I'm sorry, but your sister, unless she had already turned on the "Find my iPhone" feature and the person who took the phone has not disabled it, is out of luck. She should report the theft to local police authorities, including the serial number of her iPhone. While her experience is unfortunate, there are good reasons why Apple cannot do anything else about it.
    I hope she gets her phone back.
    Best of luck.

  • Becouse of expire of credit card I updated billing information by providing data of new credit card but system just says "We're sorry, the billing information on file could not be used for this payment. Please update your information.". What exactly is wr

    Becouse of expire of credit card I updated billing information by providing data of new credit card but system just says "We're sorry, the billing information on file could not be used for this payment. Please update your information.". What exactly is wrong?

    Are you 100% sure that every detail of your information is the same in each place?
    Make sure that EVERY DETAIL is the same in every place you enter your information
    -right down to how you spell and punctuate the parts of your name and address
    Change/Verify Account https://forums.adobe.com/thread/1465499 may help
    -Credit card https://helpx.adobe.com/utilities/credit-card.html

  • So I just bought a used MacBook from Amazon with OSX 10.5.8.  I am trying to install new software and operating system, but I don't have the passwords to the Users set up in the computer.  What do I do?

    So I just bought a used MacBook from Amazon with OSX 10.5.8.  I am trying to install new software and operating system, but I don't have the passwords to the Users set up in the computer.  What do I do?

    Put your install DVD into the optical drive (CD/DVD drive) and reboot. Be sure to either use the disc that came with your Mac, or, if you installed a later Mac OS X version from disc, use the newer disc. As soon as you hear the boot chime, hold down the "c" key on your keyboard (or the Option Key until the Install Disk shows up) until the apple shows up. That will force your MacBook to boot from the install DVD in the optical drive.
    When it does start up, you'll see a panel asking you to choose your language. Choose your language and press the Return key on your keyboard once. It will then present you with an Installation window. Completely ignore this window and click on Utilities in the top menu and scroll down to Reset Password. After resetting the password use Startup Disk from the same menu to choose your hard drive for startup and restart.

  • Erased all content on 3G but now won't sync with iTunes. Error states, "This iPhone cannot be used because the Apple Mobile Device service is not started." I don't want phone service on this old 3G. Just want to use it as an iTouch. Any suggestions?

    Erased all content on 3G but now won't sync with iTunes. Error states, "This iPhone cannot be used because the Apple Mobile Device service is not started." I don't want phone service on this old 3G. Just want to use it as an iTouch. Any suggestions?

    Type "Apple Mobile Device service " into the search bar at the top of this page by "Support"

  • Each time I want to use Firefox I have to go into Internet Explorer, go to the Firefox website and dowlload it again. It just won't open by itself on my computer.

    I f I want to use Firefox, I have to go into Internet Explorer, find Firefox and downloa it again. It just won't ope by itself
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB6.5; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729; AskTB5.6)

    Make sure Firefox is set as your default browser. See [[How to make Firefox the default browser]]

  • My system preferences won't load. It opens straight up to the desktop folder and pictures won't load, leaving me with a color wheel. I've tried restarting my computer and that doesn't help. System preferences just won't open/load at all. Any ideas?

    My system preferences won't load. It opens straight up to the desktop folder and pictures won't load, leaving me with a color wheel. I've tried restarting my computer and that doesn't help. System preferences just won't open/load at all. Any ideas?

    Deleting the System Preference or other .plist file
    ..Step by Step to fix your Mac

  • Just bought a Macbook Pro. I want a clean install so won't use a Time Machine backup but how can I install the software I bought from Apple Store? can I just delete it from the old machine that is going to someone else?

    Just bought a Macbook Pro. I want a clean install so won't use a Time Machine backup but how can I install the software I bought from Apple Store? can I just delete it from the old machine that is going to someone else?

    The ne
    The new machine has Mavericks which is fine. And I will leave it as is. I don’t want anything from my old machine other than 2 apps that I will need on the new one. I want to be able to install those apps that I bought from the App Store onto my new computer. I assume Apple doesn’t want me to have the apps installed on 2 machines at the same time so I wonder if just uninstalling them from my old machine will release them for re-install on the new one.

  • I have an IPhone 6 I'm going on a cruise and I won't be making calls or using data I'm just wanting to use the camera ...is there something I can do to to turn these off?

    I have an IPhone 6 I'm going on a cruise and I won't be making calls or using data I'm just wanting to use the camera ...is there something I can do to to turn these off?

    All you need to do is turn on Airplane Mode. It's in the settings, or the easier way is to swipe up from the bottom to open the Control Center and turn on Airplane Mode there. It's the first button at the top, with the airplane icon.
    When you turn on Airplane Mode all of your data is shut off. You can optionally turn on just Bluetooth and Wifi if you want; for example, if you wanted to use the cruise ship wifi without turning on your phone radio, or if you wanted to use a Bluetooth speaker or keyboard. But if you don't need all that just turn on Airplane Mode and leave Bluetooth and Wifi off.

  • How can I clear the browser pull down list, I have followed directions using options and it just won`t clear

    How can I clear the browser pull down list, I have followed directions using options and it just won`t clear

    Entries in the location bar drop down list with a yellow (blue on Mac) star at the right end are bookmarks.<br />
    You can remove such a bookmarked item that shows in the list if you open that url in a tab and click the yellow star in the location bar.<br />
    This will open the "Edit This Bookmark" dialog and you can click the Remove button to remove the bookmark if you want to remove such a bookmarked entry.<br />
    * [[Clearing Location bar history]]
    * [[Cannot clear Location bar history]]

Maybe you are looking for

  • Migrating Open Sales Order From Legacy System (SAP) To SAP System

    Hi Experts,              I've to Migrate all Open Sales Orders From Legacy System (SAP) To SAP System using Business Objects with a new SALES ORDER DOCUMENT NUMBER referencing the older one.            I'll get all the required data with field in an

  • IPhone 4s to hdmi adapter

    Is there an adapter for iphone 4s to hdmi that will work with the ios 8 upgrade???

  • ? Best practice -- Repare service purchase

    Hi Expert, Who could tell me the best practice for below scenario ? We want to send parts A to vendor for reparing. After reparing, the parts is still A in system . We want to create PO for this, but after goods receipt, we would like reparing fee bo

  • Variable in Bookmark

    Hi Guys, We  have a query with a variable that would be filled with our customer-exit and this works. But if we made a bookmark from this query, there wuoldn't be refreshed the variable. Unfortunately we haven't got   AS JAVA  yet, and we use actuall

  • RPD Physical Layer

    Hi, I am trying to import tables from database to the physical layer. when we select objects to add to physical layer which boxes to we need to check below. I know we need to check 'Tables' and 'Keys'. Other than these two do we check any other box?