Re: How to find which swap in use?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 06/11/2010 05:23 PM, Timothy Murphy wrote:
> Aaron Konstam wrote:
>
>>> Actually, these give the same information in this case as "top", eg
>>> ----------------------------------
>>> [tim@alfred ~]$ sudo swapon -s
>>> Filename      Type            Size    Used    Priority
>>> /dev/sdb3     partition       1959920 0       -1
>>> ----------------------------------
>>>
>>> It seems that swap is not being used, for some reason.
>>> This machine has just under 1GB RAM (the max for this motherboard)
>>> so it is not clear why swap is not in use.
>>>
>> I can think of may reasons for swap not to be used at a particular
>> moment.For example, at this moment the swap on my desktop has 0 bytes
>> used. If swap is never used then one can start worrying.
>
> As far as I can see, it is never being used.
> I've checked on my other machines, and they all show some swap usage,
> even if it is very small, eg 144 (I assume this is 144k) on my server,
> with 4GB RAM.
>
> The old machine I'm talking about has less than 1GB RAM,
> and is running Fedora-12, so surely it must need to swap sometimes.
>
> Is there any way of forcing a machine to swap?

Create a big ramdisk that eats most of the memory and run a bunch
of programs.  Here's an example command to suck up 80% of your RAM into
a ramdisk:

     # mount -t tmpfs -o mode=0777,size=80% tmpfs /mnt

Disk will be mounted at /mnt.  Unmount /mnt to free the memory back up.
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, C2 Hosting          ricks@xxxxxxxx -
- AIM/Skype: therps2        ICQ: 22643734            Yahoo: origrps2 -
-                                                                    -
-      The moving cursor writes, and having written, blinks on.      -
----------------------------------------------------------------------
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux