On Wednesday 01 January 2003 02:10 am, Neil Parker wrote:
: On Tue, 31 Dec 2002, Linux Rocks ! wrote:
: >Redhat... sigh... Ill say it again... Yet another reason to not use
: > redhat.
:
: It's not Redhat's fault. The exact same wording appears in the Swackware
: mkswap(8) man page. Redhat (and Slackware, and who knows how many other
: distributions) probably just took the author's original man page and
: packaged it up without modification.
In my slack 8.1 system I have this for the mkswap manpage:
MKSWAP(8) Linux Programmer's Manual MKSWAP(8)
NAME
mkswap - set up a Linux swap area
SYNOPSIS
mkswap [-c] [-vN] [-f] [-p PSZ] device [size]
DESCRIPTION
mkswap sets up a Linux swap area on a device or in a file.
...
Presently, Linux allows 8 swap areas. The areas in use can
be seen in the file /proc/swaps (since 2.1.25).
Presently, Linux allows 8 swap areas. The areas in use can
be seen in the file /proc/swaps (since 2.1.25).
mkswap refuses areas smaller than 10 pages.
If you don't know the page size that your machine uses,
you may be able to look it up with "cat /proc/cpuinfo" (or
you may not - the contents of this file depend on archi-
tecture and kernel version).
my cpuinfo didnt seem to have anything pertinant to page size, however others
might... cpuinfo seems a lot less relevent than meminfo... Why would
cpuinfo be included, but not meminfo?
Jamie
:
: >On Tuesday 31 December 2002 05:00 pm, Horst wrote:
: >: On Tue, 31 Dec 2002, Linux Rocks ! wrote:
: >: > cat /proc/cpuinfo should tell you about your CPU.
: >: > cat /proc/meminfo should tell you about your memory. (including info
: >: > about swap)
: >: >
: >: > Jamie
: >:
: >: Sounds more than reasonable (and works :-)
: >: - I don't know why I blindly trusted the man pages ( RH 8.0 )-:
: >: """
: >: MKSWAP(8) Linux Programmer’s Manual
: >: MKSWAP(8) ...
: >: If you don’t know the page size that your machine uses, you may be
: >: able to look it up with "cat /proc/cpuinfo" (or you may not ‐ the
: >: contents of this file depend on architecture and kernel version).
: >: ...
: >:
: >: Linux 2.2.4 25 March 1999
: >: MKSWAP(8)
: >:
: >: """
: >:
: >: > On Tuesday 31 December 2002 12:27 pm, Horst wrote:
: >:
: >: ...
: >:
: >: > : Q to all: is the old vs. new swap style issue still relevant these
: >: > : days (old style being limited to 128MB usable space) -- I made a 500
: >: > : MB swap partition for my 265MB RAM, and top shows it all as avail.
: >: > : -so I'm assuming I config'ed and use the new style ?
: >: > : cat /proc/cpuinfo didn't tell me any more either ............. Horst
:
: I don't believe the swap format issue has been of any importance since the
: transition from Kernel 2.0 to 2.2. As long as your swap partition was
: formatted under a 2.2 or later kernel, it should be in the new format.
: (Unless you said "mkswap -v0", but there's no reason to do that, unless
: you have some need to make a swap space that's backwards-compatible with
: old kernels.)
:
: If you really need to know for sure which kind of swap space you have, type
: this (you'll need to be root):
:
: dd if=/dev/hdXX bs=4096 count=1 | strings
:
: where "/dev/hdXX" is your swap partition. If you see "SWAP_SPACE" in the
: output, you have an old-style swap partition. "SWAPSPACE2" indicates the
: new style. (If you don't see either of the above, try increasing the "bs="
: number to higher powers of 2...the power that first reveals the swap
: space signature is equal to your page size in bytes.)
:
: - Neil Parker
:
: _______________________________________________
: Eug-LUG mailing list
: [EMAIL PROTECTED]
: http://mailman.efn.org/cgi-bin/listinfo/eug-lug
--
No microsoft products were used to produce this message.
EUG-LUG Mailing List:
http://mailman.efn.org/cgi-bin/listinfo/eug-lug
_______________________________________________
Eug-LUG mailing list
[EMAIL PROTECTED]
http://mailman.efn.org/cgi-bin/listinfo/eug-lug