swapon reports wrong swapsize

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

 



Hi,

I just noticed that 'swapon -av' says:

  swapon on /dev/sda2
  swapon: /dev/sda2: found swap v1 signature string for 4 KiB PAGE_SIZE

  swapon: /dev/sda2: pagesize=4096, swapsize=3716452352, devsize=8011422720

whereas '/proc/swaps', 'free', and 'top' all report the size as 7823644.
Where does that number 3716452352 come from?

This is from util-linux-ng-2.16.2, running on Linux 2.6.28.6-x86_64 but
compiled for 2.6.28.6-i686.  As far as I can see from the current git, the
computations in lib/blkdev.c and mount/swapon.c are still the same.

Regards
Peter Breitenlohner <peb@xxxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux