From: Jakub Wilk Date: Thu, 20 Jan 2022 18:16:09 +0000 (+0100) Subject: mkswap: (adoc) suggest looking up page size portably X-Git-Tag: v2.38-rc1~45^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7167a4545cbe28cb8bc3d9f7ceab6ad3a9a5879d;p=thirdparty%2Futil-linux.git mkswap: (adoc) suggest looking up page size portably Signed-off-by: Jakub Wilk --- diff --git a/disk-utils/mkswap.8.adoc b/disk-utils/mkswap.8.adoc index fb56dfc52e..45aa2975a4 100644 --- a/disk-utils/mkswap.8.adoc +++ b/disk-utils/mkswap.8.adoc @@ -100,7 +100,7 @@ Presently, Linux allows 32 swap areas. The areas in use can be seen in the file *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 architecture and kernel version). +If you don't know the page size that your machine uses, you can look it up with *getconf PAGESIZE*. To set up a swap file, it is necessary to create that file before initializing it with *mkswap*, e.g. using a command like