]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
mkswap: (adoc) suggest looking up page size portably
authorJakub Wilk <jwilk@jwilk.net>
Thu, 20 Jan 2022 18:16:09 +0000 (19:16 +0100)
committerJakub Wilk <jwilk@jwilk.net>
Thu, 20 Jan 2022 18:16:09 +0000 (19:16 +0100)
Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
disk-utils/mkswap.8.adoc

index fb56dfc52ebf3a545588877d74b37fd60e3caa19..45aa2975a4a9eacc443d04366c934469e10f4c7b 100644 (file)
@@ -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