Hi guys, I'm trying to patch the behaviour of the --recommended switch for assigning swap; at our site we have a different set of requirements/ different set of rules for maximum swap sizes. The problem is that whilst my patch works and builds (I'm rebuilding the RPM we're using on site on our PXE server) and looks right enough, it isn't actually behaving as it should; it is still using RAM + 2048 when RAM is at size n. (I cant remember off the top of my head what n is in the default build. The file I have patched is iutil.py, is this incorrect? The patch I am using, by the way, is: --- iutil.py 2010-08-30 13:57:10.000000000 +0100 +++ iutil_coreix.py 2010-08-30 14:08:37.000000000 +0100 @@ -138,16 +138,16 @@ if not quiet: log.info("Detected %sM of memory", mem) - if mem < 128: - minswap = 96 - maxswap = 192 + if mem < 256: + minswap = 256 + maxswap = 512 else: - if mem > 2000: - minswap = 1000 - maxswap = 2000 + mem + if mem > 512 and mem <= 3057: + minswap = 1024 + maxswap = 2*mem else: minswap = mem - maxswap = 2*mem + maxswap = 6114 if not quiet: log.info("Swap attempt of %sM to %sM", minswap, maxswap) Cheers, James Condron _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list