Refuses to create > 2048MB swapfile

Bug #270180 reported by on 2008-09-14
Affects Status Importance Assigned to Milestone
dphys-swapfile (Debian)
Fix Released
dphys-swapfile (Ubuntu)

Bug Description

Binary package hint: dphys-swapfile

As far as I can tell, the maximum swap file size logic in the script is related to a long-gone bug in mkswap. mkswap will happily create files beyond 2GB now, and systems with well over 2GB RAM are common. The attached patch removes this logic. Tested successfully on on amd64 with XFS.

Description: Ubuntu 8.04.1
Release: 8.04
  Installed: 20061020-1
  Candidate: 20061020-1
  Version table:
 *** 20061020-1 0
        500 hardy/universe Packages
        100 /var/lib/dpkg/status

Jim Qode (jimqode) wrote :
Changed in dphys-swapfile:
status: Unknown → New
James Westby (james-w) wrote :

Uploaded, thanks for your contribution.


Changed in dphys-swapfile:
status: New → Fix Committed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package dphys-swapfile - 20061020-1ubuntu1

dphys-swapfile (20061020-1ubuntu1) intrepid; urgency=low

  * applied patch from <email address hidden> to remove max swap file size
    logic (LP: #270180)

 -- Jim Qode <email address hidden> Tue, 16 Sep 2008 14:12:18 +0300

Changed in dphys-swapfile:
status: Fix Committed → Fix Released


the patch which removes the max swap file size logic from
dphys-swapfile will be removed with the next upload of dphys-swapfile
to Debian because it is harmful and mostly unnecessary:

a) Without that patch dphys-swapfile would not have gone havoc as
   reported in

b) The maximum swap file size is configurable in /etc/dphys-swapfile.

c) The patch removed a useful feature (configurable max swap file size).

Nevertheless I will ensure that there is no limit to the swap file
size if MAXSWAP (or maybe CONF_MAXSWAP) is set to the empty string or
zero in "/etc/dphys-swapfile".

I'll also add information about the possibility to configure the max
swap size as well as the factor in "/etc/dphys-swapfile" to the man
page and will suggest to the upstream author to make both officially
configurable (i.e. starting with "CONF_").

 Regards, Axel (upcoming maintainer of dphys-swapfile in Debian)
 ,''`. | Axel Beckert <email address hidden>,
: :' : | Debian Developer, Admin
`. `' | 1024D: F067 EA27 26B9 C3FC 1486 202E C09E 1D89 9593 0EDE
  `- | 4096R: 2517 B724 C5F6 CA99 5329 6E61 2FF9 CD59 6126 16B5

Changed in dphys-swapfile (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.