More than 2 Gb of swap



Hi,

On a system with Linux RedHat AS 3.0 (kernel 2.4.21-20.ELsmp) with an
AMD Opteron, I have got 4 GB of RAM and 8 GB of swap. These 8 GB of
swap are on only one partition.

According to the man of mkswap (The maximum useful size of a swap area
now depends on the architecture. It is roughly 2GiB on i386, PPC,
m68k, ARM, 1GiB on sparc, 512MiB on mips, 128GiB on alpha and 3TiB on
sparc64).
This rule imposes 4 partitions of 2G to have 8 GB.

With only one swap partition of 8 GB, a top displays that I have 8 GB
of total swap. By making the server swapping, I have this:
Swap: front 8388472k, 4193584k used, 4194888k free 2265020k cached
Thus seems working in spite of this rule.

On the other hand, SNMP gives this information on the swap:
Total swap: 2 GB/Swap uses: 2 GB

It should be noted that SNMP counters can contain data largely higher
than 2 GB. Results given by top and those obtained by SNMP are
contradictory. Which is the maid; which is distorts it?

Sylvain

.



Relevant Pages

  • Re: Security of data in memory
    ... swap partition, key protection, secure data deletion. ... being stolen or otherwise disclosed they will often respond with filesystem ... permissions on a file, user, group and other as a bare minimum. ...
    (SecProg)
  • Re: Hibernation woes
    ... this) or a swap PARTITION needs to be created from disk space ... which I take to mean unformatted free physical unused disk space just ... swap "file" creation and change. ... Unfortunately this is a dual boot machine (XP and Ubuntu) and will ...
    (Ubuntu)
  • Re: Pagefile problem after duplicating Win2000 partition
    ... Boot into safe mode ... set your new swap file appropriatly ... > like the old one was (using Partition Magic 7): ... So that the actual Windows desktop never comes up, ...
    (microsoft.public.win2000.general)
  • Re: Script to change swap <-> FAT partition on reboot?
    ... access with either operating system to transfer files, ... script that changes my swap space to FAT. ... I rarely transfer files from Windows to Linux but if I do, ... choose whether I want to change the FAT partition to a swap one? ...
    (comp.os.linux.misc)
  • How to reassign "hibernate/restore/resume" partition on F9?
    ... Recently I upgraded the boot hard drive on this F9 box from 20GB to ... reversed the swap and root partition numbers. ... The swap partition is correctly detected. ... to look for the origin of the kernel boot message. ...
    (Fedora)