Re: [PATCH 4/5] Set minswap suggestion on s390x to 1 (#466289).

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

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, 14 Apr 2010, Hans de Goede wrote:

Ack.

Why not 0 though ?

Because for autopart, we still want to enforce _some_ swap.  It can be any
size though.

On 04/14/2010 07:02 PM, David Cantrell wrote:
On s390x, set the minswap suggestion to 1 rather than 256, 1024, or the
amount of memory in the system.  On s390x, it's common for users to run
with swap volumes smaller than the installed memory size, so align the
anaconda recommendations with that.
---
  iutil.py |    3 +++
  1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/iutil.py b/iutil.py
index a568ff7..d6e6e2f 100644
--- a/iutil.py
+++ b/iutil.py
@@ -454,6 +454,9 @@ def swapSuggestion(quiet=0):
              minswap = mem
              maxswap = 2*mem

+    if isS390():
+        minswap = 1
+
      if not quiet:
  	log.info("Swap attempt of %sM to %sM", minswap, maxswap)



- -- David Cantrell <dcantrell@xxxxxxxxxx>
Red Hat / Honolulu, HI

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkvGH64ACgkQ5hsjjIy1VkklrgCff4vVF+Z2mEtoICG69ROM+V6S
jfwAoKJieeVQcT2/M9HP4ZzL4Pe25hH6
=Dpui
-----END PGP SIGNATURE-----

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux