Tmpfs not using swap [Solved]

i have set up /tmp as tmpfs for compiling but i get errors when i run out of memory, i was under the assumption that when tmpfs runs out of memory it uses swap space but swap never gets used even when swappiness is set to 100
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 19G 729M 18G 4% /
none 1.9G 1.8M 1.9G 1% /dev/shm
none 1.9G 864M 983M 47% /tmp
none 10M 332K 9.7M 4% /var/log
none 10M 44K 10M 1% /var/run
none 10M 0 10M 0% /var/lock
/dev/sda2 19G 1.6G 17G 9% /usr
/dev/sda3 185G 3.1G 172G 2% /home
mount
/dev/sda1 on / type ext4 (rw,noatime)
none on /dev type ramfs (rw,relatime)
none on /proc type proc (rw,relatime)
none on /sys type sysfs (rw,relatime)
none on /dev/pts type devpts (rw)
none on /dev/shm type tmpfs (rw)
none on /tmp type tmpfs (rw)
none on /var/log type tmpfs (rw,size=10m)
none on /var/run type tmpfs (rw,size=10m)
none on /var/lock type tmpfs (rw,size=10m)
/dev/sda2 on /usr type ext4 (rw,noatime)
/dev/sda3 on /home type ext4 (rw,noatime)
free
total used free shared buffers cached
Mem: 3780388 1494456 2285932 0 42884 1084512
-/+ buffers/cache: 367060 3413328
Swap: 8000360 0 8000360
Last edited by guzz46 (2009-08-23 23:51:48)

# /etc/fstab: static file system information
# <file system> <dir> <type> <options> <dump> <pass>
none /dev/pts devpts defaults 0 0
none /dev/shm tmpfs defaults 0 0
none /tmp tmpfs defaults 0 0
none /var/log tmpfs defaults,size=10m 0 0
none /var/run tmpfs defaults,size=10m 0 0
none /var/lock tmpfs defaults,size=10m 0 0
#/dev/cdrom /media/cd auto ro,user,noauto,unhide 0 0
#/dev/dvd /media/dvd auto ro,user,noauto,unhide 0 0
#/dev/fd0 /media/fl auto user,noauto 0 0
/dev/sda1 / ext4 defaults,noatime 0 1
/dev/sda2 /usr ext4 defaults,noatime 0 2
/dev/sda3 /home ext4 defaults,noatime 0 2
/dev/sda4 swap swap defaults 0 0
do you have to specify tmpfs instead of none under file system?
Edit: i also tried
# /etc/fstab: static file system information
# <file system> <dir> <type> <options> <dump> <pass>
none /dev/pts devpts defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
tmpfs /tmp tmpfs defaults 0 0
tmpfs /var/log tmpfs defaults,size=10m 0 0
tmpfs /var/run tmpfs defaults,size=10m 0 0
tmpfs /var/lock tmpfs defaults,size=10m 0 0
#/dev/cdrom /media/cd auto ro,user,noauto,unhide 0 0
#/dev/dvd /media/dvd auto ro,user,noauto,unhide 0 0
#/dev/fd0 /media/fl auto user,noauto 0 0
/dev/sda1 / ext4 defaults,noatime 0 1
/dev/sda2 /usr ext4 defaults,noatime 0 2
/dev/sda3 /home ext4 defaults,noatime 0 2
/dev/sda4 swap swap defaults 0 0
mount
/dev/sda1 on / type ext4 (rw,noatime)
none on /dev type ramfs (rw,relatime)
none on /proc type proc (rw,relatime)
none on /sys type sysfs (rw,relatime)
none on /dev/pts type devpts (rw)
tmpfs on /dev/shm type tmpfs (rw)
tmpfs on /tmp type tmpfs (rw)
tmpfs on /var/log type tmpfs (rw,size=10m)
tmpfs on /var/run type tmpfs (rw,size=10m)
tmpfs on /var/lock type tmpfs (rw,size=10m)
/dev/sda2 on /usr type ext4 (rw,noatime)
/dev/sda3 on /home type ext4 (rw,noatime)
but nothings changed, i'm sure it's a tmpfs because /tmp reads 1.9gb and everythings in there is gone after a reboot but it still doesn't use swap as backup
Last edited by guzz46 (2009-08-23 12:38:43)

Similar Messages

  • Database Instance Using Swap Space even When There is Plenty of Free RAM

    Hi,
    I am facinga strange issue in oracle on solaris 5.10
    Platform:solaris 5.10
    Database version:11.2.0.1.0
    Our database Instance Using Swap Space even When There is Plenty of Free RAM.
    We have 80GB of physical RAM, 32GB is set to oracle SGA_MAX_SIZE
    memory parameters:
    memory_max_target big integer 32G
    memory_target big integer 32G
    sga_max_size big integer 32G
    sga_target big integer 32G
    but still oracle is taking memory from swap even though we have enough physical memory.
    please find the top output
    load averages: 0.09, 0.18, 0.84 01:07:49
    134 processes: 133 sleeping, 1 on cpu
    CPU states: 99.4% idle, 0.4% user, 0.3% kernel, 0.0% iowait, 0.0% swap
    Memory: 80G real, 69G free, 35G swap in use, 49G swap free
    PID USERNAME LWP PRI NICE SIZE RES STATE TIME CPU COMMAND
    1052 oracle 13 59 0 95M 66M sleep 13:16 0.07% oraagent.bin
    10256 oracle 1 59 0 32G 835M sleep 0:00 0.03% oracle
    1227 oracle 15 59 0 78M 56M sleep 4:27 0.02% ocssd.bin
    9524 vector1 112 59 0 1704M 776M sleep 45:04 0.02% java
    988 oracle 38 59 0 119M 92M sleep 3:00 0.02% ohasd.bin
    1297 oracle 1 101 -20 453M 390M sleep 2:47 0.02% oracle
    1765 oracle 1 101 -20 32G 329M sleep 2:45 0.02% oracle
    10258 oracle 1 59 0 32G 345M sleep 0:00 0.02% oracle
    10259 oracle 1 59 0 3400K 2024K cpu/20 0:00 0.01% top
    1777 oracle 1 59 0 32G 342M sleep 1:14 0.01% oracle
    1246 oracle 6 59 0 56M 44M sleep 1:22 0.01% diskmon.bin
    1803 oracle 1 59 0 32G 514M sleep 0:30 0.01% oracle
    1215 oracle 15 59 0 71M 46M sleep 1:12 0.00% cssdagent
    1307 oracle 1 59 0 453M 390M sleep 0:45 0.00% oracle
    1217 oracle 11 59 0 81M 49M sleep 0:35 0.00% orarootagent.bi
    Vmstat output:
    $vmstat 5 5
    kthr memory page disk faults cpu
    r b w swap free re mf pi po fr de sr s3 s3 s3 s3 in sy cs us sy id
    0 0 0 53698448 73900568 20 81 32 6 5 0 1 -0 0 1 -0 2235 1447 1984 1 0 99
    0 0 0 51196160 72037552 1 13 0 0 0 0 0 0 0 0 0 2505 1403 2204 0 0 100
    0 0 0 51193488 72035864 55 380 0 0 0 0 0 0 0 0 0 2487 2143 2203 0 1 99
    0 0 0 51183856 72030176 0 0 0 3 3 0 0 0 0 0 0 2496 1370 2182 0 0 99
    0 0 0 51182648 72029112 22 117 0 0 0 0 0 0 0 0 0 2503 1408 2193 1 0 99
    $cat /etc/release
    Solaris 10 10/09 s10s_u8wos_08a SPARC
    Copyright 2009 Sun Microsystems, Inc. All Rights Reserved.
    Use is subject to license terms.
    Assembled 16 September 2009
    I refered the metalink document id: [ID 761960.1]
    Database Instance Using Swap Space When There is Plenty of Free RAM metalink note [ID 761960.1]
    and tried the disabling the sga_max_size and memory_max_target and memory target with all different combination but no use.
    We have one more box where same setup was configured in solaris platform but there the above memory parameters are not disabled but it is not using swap space it takes memry only from physical RAM
    Can any one throw some lights on this issue. It wopuld be great if I come to know where the exact problem
    Thanks in advance
    With Regards,
    Boobathi P

    Hi,
    I didn't say I am not using 11gr2 memory parameters I am using all the automatic memory parameters but the thinks is as per the metalink note I tried by disabling the automatic memory parameters. but that didn't help me in preventing unnecessary swap usage. So I reverted. now it is using automatic memory parameters.
    so What is the solution for this?
    With Regards,
    Boo

  • My iPhone 5s was bought with full price in the USA from Sprint, and I was told that it is a global phone. And I can use it in china. But I can not use it in the USA, so could you mind help me to solve that problem.  I think someone of you must help me to

    My iPhone 5s was bought with full price in the USA from Sprint, and I was told that it is a global phone. And I can use it in china.
    But I can not use it in the USA, so could you mind help me to solve that problem.
    I think someone of you must help me to solve this problem !
    Details:
    SN:F2*****FDR
    <Edited by Host>

    See the response in your other thread:
    https://discussions.apple.com/message/24641427#24641427

  • I bought my iphone unlocked from carephone warehouse, I had a problem with the phone and apple swapped it over but they locked it to tmobile!!! what can i do?? I have changed contracts and can not use my phone!

    I bought my iphone from carephone warehouse, sim free and with no contract. 5 months down the line I had a problem with the phone and I booked a genius appointment, they swapped my phone and gave me a new phone but they locked my phone to tmobile!!! I now do not use tmobile and I have an iphone which is locked to tmobile!!! I bought an unlocked phone and apple have locked it!!! what can i do?

    In response to this, Carphone Warehouse (and Phones4U) sell what is commonly referred to as "sim free" handsets - these are not the same as unlocked. Sim free handsets will automatically lock to the first network sim card that the phone is activated with, and that will be permanently. The only way to unlock the handset would be to go through the network (T-Mobile I understand) and request they unlock it for you. More than likely, there will be a charge as you are no longer a T-Mobile customer.
    If you ever want to purchase a new unlocked iPhone, the only place you can buy one is from Apple directly. Any other place will most likely sell sim free handsets.

  • HT4993 My iPhone 5s was bought with full price in the USA from Sprint, and I was told that it is a global phone. And I can use it in china. But I can not use it in the USA, so could you mind help me to solve that problem.  I think someone of you must help

    My iPhone 5s was bought with full price in the USA from Sprint, and I was told that it is a global phone. And I can use it in china.
    But I can not use it in the USA, so could you mind help me to solve that problem.
    I think someone of you must help me to solve this problem !
    Details:
    <Edited by Host>

    xinyi93 wrote:
    My iPhone 5s was bought with full price in the USA from Sprint, and I was told that it is a global phone. And I can use it in china.
    But I can not use it in the USA, so could you mind help me to solve that problem.
    Yes, the iPhone 5S is a global phone. However, Sprint will only unlock phones for use on GSM networks outside of the U.S. In the U.S., that phone can only be used on Sprint's network.

  • My Macbook Pro purchased Dec 2011 has suddenly become very slow after not using for 2 weeks (close to frozen). What is the problem and how to solve it?

    My Macbook Pro purchased Dec 2011 has suddenly become very slow after not using for 2 weeks (close to frozen). What is the problem and how to solve it?

    Need Help Ye,
    boot your MacBook Pro into Recovery mode by holding down a Command key and the R key as it starts up. Once the Mac OS X Utilities menu appears, select Disk Utility. On the left-hand side of the Disk Utility window, select your internal disk’s boot partition (typically called “Macintosh HD”). On the right-hand side, press the Verify Disk button if it’s not greyed out; if it is greyed out, or if it reports that errors were found, press the Repair Disk button. Once the verification/repair is completed, exit Disk Utility and select Restart from the Apple menu to restart in normal mode. Is it still very slow?

  • [SOLVED] Subversion will not use gnome-keyring

    Hi,
    Anyone know how to use gnome-keyring with subversion?  When I run svn up, I get the following warning every time:
    ATTENTION! Your password for authentication realm:
    <https://123.456.789.012:443> Subversion Repository
    can only be stored to disk unencrypted! You are advised to configure
    your system so that Subversion can store passwords encrypted, if
    possible. See the documentation for details.
    You can avoid future appearances of this warning by setting the value
    of the 'store-plaintext-passwords' option to either 'yes' or 'no' in
    '/home/david/.subversion/servers'.
    Store password unencrypted (yes/no)?
    I googled a bit and found that you can use gnome-keyring to store passwords encrypted.  I tried setting "password-stores = gnome-keyring" in ~/.subversion/config, but this had no effect.
    I have the package 'extra/gnome-keyring' installed.  From what I can see Subversion is always compiled with gnome-keyring support.  I also tried starting the gnome-keyring-daemon, since it's not started by default (I don't use GNOME as my WM).  I started it from the command line using 'gnome-keyring-daemon' command.  But this had no effect - subversion acts like it doesn't know gnome-keyring even exists.
    Any idea?
    Cheers,
    David
    Last edited by david00 (2010-03-22 09:45:32)

    I had the same problem.
    When the daemon gets started it prints some environment variables with values to stdout. I think other programs like subversion read these to connect to the daemon.
    Starting the daemon like this:
    export `gnome-keyring-daemon`
    in your .xinitrc or at a comparable place should solve your problem.
    Of course, this only applies if you're not using the gnome desktop environment.

  • I want to ask company when user update to ios7 it stuck all of device and not clearly about apple id to active how to solve it or just keep all of device into recycle because can not use?

    i want to ask company when user update to ios7 it stuck all of device and not clearly about apple id to active how to solve it or just keep all of device into recycle because can not use?

    You need to enter the Apple ID and password that was used to set up/activate the phone. There is no way around this.

  • I am getting a 'MIDI timeout' error message when I open garageband. I am not using any other apps so why is this happening. Restarting does not solve the issue.

    I am getting a 'MIDI timeout' error message when I open garageband. I am not using any other apps so why is this happening. Restarting does not solve the issue.

    I should also add that I am using core audio, no external MIDI device and Garageband v 6.0.5. Thanks

  • How to find Oracle is using swap space or not?

    Hi,
    I have a SuSe Linux database server on which 2 Oracle 10g databases and one MySQL server is running.
    I can see a very little swap space is being used in the server while there is almost 100% RAM utlization.
    I want to know if my Oracle databases are using swap or not. If it is using, how much of swap being used currently by each Oracle database?
    Can someone please guide me on how to do that?
    Thanks in advance for your help.
    Regards,
    Murali Mohan

    I did "vmstat 1 10" and here is the output.
    What I want to know how much swap space is used by each of my oracle database while the below output is for total swap usage
    procs -----------memory---------- ---swap-- -----io---- system ----cpu----
    r b swpd free buff cache si so bi bo in cs us sy id wa
    0 0 2366860 36996 81660 9458664 67 44 4160 356 9 13 5 3 82 9
    0 0 2366860 38224 81748 9458576 0 0 0 512 1041 369 0 0 99 1
    1 0 2366860 38224 81748 9458576 0 0 4 80 1053 293 6 0 93 0
    2 0 2366860 38224 81752 9458572 0 0 80 40 1467 956 22 7 70 1
    2 1 2366860 38248 81760 9458564 0 0 0 580 1150 444 32 17 50 1
    1 1 2366860 38124 81808 9458516 0 0 360 1040 1672 1158 28 13 51 8
    2 0 2366860 38124 81832 9458492 0 0 84 288 1380 931 33 10 57 1
    2 0 2366860 36596 81884 9458388 52 0 52 4088 1098 475 36 16 46 1
    2 0 2366860 38188 81916 9458356 0 0 144 1096 1251 570 36 12 49 2
    2 0 2366860 38180 81916 9458356 0 0 68 136 1595 1134 28 9 63 1

  • I have the iPhone 4 recently became weak Wi-Fi where I can not use the Internet only when sitting Bejjani router, Can anyone help me in solving this problem please iPhone 4, iOS 7.0.3

    I have the iPhone 4 recently became weak Wi-Fi where I can not use the Internet only when sitting Bejjani router, Can anyone help me in solving this problem please
    iPhone 4, iOS 7.0.3

    There's a whole lot to read in your post, and frankly I have not read it all.
    Having said that, this troubleshooting guide should help:
    http://support.apple.com/kb/TS1538
    In particular, pay attention to the mobile device support sections near the bottom, assuming you have already done the items above it.

  • HT4085 I has a problem and I am not able to solve that when I use sound effect it is showed only headphone even I did not installing the headphone I has a problem and I am not able to solve that I am. Not able to hear the sound without headphone please he

    I has a problem and I am not able to solve that when I use sound effect it is showed only headphone even I did not installing the headphone I has a problem and I am not able to solve that I am. Not able to hear the sound without headphone please help guys

    Sounds to me like a hardware issue or maybe something is stuck in the headphone jack. When you plug in headphones, the jack in the iPad is switched to play only through the headphones and not the iPad's speakers. Sounds like either the jack is faulty or there is something stuck in the headphone jack. Get a flashlight & look inside the jack for anything that looks like it doesn't belong in there.
    Regardless, I'd take it in to an Apple Store if you have one nearby to have it checked.
    EDIT: "Ocean20" had an excellent suggestion above. While doing that, you may also want to rotate/twist the plug in the jack back & forth a few times as well. Dirty contacts can often times be cleared by doing this.

  • [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?

  • HT1725 My problem is when I want download anything it doesn't downloading .and the IPad writte in his screen the apple ID it did not use yet in the iTunes stor. Can I know how I ll solve this problem ???

    Plz how I can download normally without problem.because the iPad writing on his screen this ( appleID did not use yet in iTunes)

    I would restore the iPod to factory defaults/new iPod on your computer and start over. It appears the iPod is associated with another account.  Any media that came with the iPod does not belong to you and di not transfer with the iPod hardware.

  • [SOLVED]where I can specify where are my font if not using xorg.conf

    where I can specify where are my font if not using xorg.conf
    thanks
    Last edited by jccl1706 (2010-04-01 18:06:45)

    You can try to this in ~/.xinitrc :
    xset +fp /usr/share/fonts/local
    or any other path.

Maybe you are looking for

  • Is there any type of HiFi Station available for the 2nd Gen. iPod shuffle?

    I was wondering if there is any type of HiFi Station available for the 2nd Gen. iPod shuffle. With HiFi Station I mean those docking stations which directly play the music from your iPod, so that you don´t need to connect to your Computer f.e. Does a

  • Incoming Payments

    Hi, I would like to make a payment for a customer with several outstanding invoices using a lump sum amount that does not total their entire outstanding balance, however it seems that my only option is to manually calculate the difference.  For examp

  • Where can I download Firefox 17.0.8esr for Solaris 10 (SPARC)?

    I need to upgrade from 17.0.7esr to 17.0.8esr on Solaris 10 (SPARC) servers. For some reason there is no /contrib/ folder under http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/17.0.8esr/ That is where I normally find the Solaris tarball I nee

  • ?  Lion 10.7

    This is the first time on any Apple Support  Communities I have  Lion 10.7 and Safari 6.05 .   I cannot move the page of Safari at all.  Cannot move it to see the desktop(minor) but cannot move it to see the red,yellow ,green buttons  at the top left

  • Image Adjustments Questions

    So many sliders and so little time.  Iam a little conflicted by the various sliders in Aperture 3. I mostly shoot in RAW and sometimes work on JPEGS from a different camera. I would be setting blacks, white and midtone levels early in the work flow.