From 7167a4545cbe28cb8bc3d9f7ceab6ad3a9a5879d Mon Sep 17 00:00:00 2001 From: Jakub Wilk Date: Thu, 20 Jan 2022 19:16:09 +0100 Subject: [PATCH] mkswap: (adoc) suggest looking up page size portably Signed-off-by: Jakub Wilk --- disk-utils/mkswap.8.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.3