Bug 30192 - RFE: add to rc.sysinit to warn if swap is not 2X physical memory
Summary: RFE: add to rc.sysinit to warn if swap is not 2X physical memory
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: initscripts
Version: 7.1
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-03-01 18:50 UTC by Mark Rusk
Modified: 2014-03-17 02:19 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2001-03-01 18:51:02 UTC
Embargoed:


Attachments (Terms of Use)

Description Mark Rusk 2001-03-01 18:50:58 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.75 [en] (X11; U; Linux 2.4.1-0.1.9smp i686)


2.4 kernels act wierd if swap is less than 2 time physical memory. 
rc.sysinit should warn user that swap is too small.


Reproducible: Always
Steps to Reproduce:
1. add script to rc.sysinit after swap files are turned on.
2.
3.
	

if [ $((`grep SwapTotal: /proc/meminfo|cut -c11-23`/`grep MemTotal:
/proc/meminfo| cut -c11-23`)) -lt 2 ]; then
echo "Warning: Swap space should be 2X physical memory."
echo "Please increase size or number of swap files/partitions."
fi

Comment 1 Bill Nottingham 2001-03-01 22:05:36 UTC
No, this is really the wrong place for this sort of thing; it should
go in the documentation/release-notes.


Note You need to log in before you can comment on or make changes to this bug.