Skip to contentSkip to conversation

madvise: MADV_SOFT_OFFLINE requests can return -EBUSY

PATCH Superseded [email protected] 2 participants 2 messages Oct 10, 2024 – Nov 1, 2024 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 madvise: MADV_SOFT_OFFLINE requests can return -EBUSY

If any page(s) within the add+length range could not be offlined madvise will return -EBUSY. This might occur if the page is currently in use or locked.

---

man/man2/madvise.2 +5 -0
index 441edfbc1..13ee7957c 100644
@@ -702,6 +702,11 @@ The map exists, but the area maps something that isn't a file.
 .BR MADV_COLLAPSE )
 Could not charge hugepage to cgroup: cgroup limit exceeded.
 .TP
+.B EBUSY
+(for
+.B MADV_SOFT_OFFLINE )
+If any page(s) within the add+length range could not be offlined madvise will return -EBUSY. This might occur if the page is currently in use or locked.
+.TP
 .B EFAULT
 .I advice
 is
#1 lore raw

Hi Tyonnchie,

Quoted 13 lines · On Thu, Oct 10, 2024 at 05:41:38PM -0400, [email protected] wrote:

If any page(s) within the add+length range could not be offlined madvise will return -EBUSY. This might occur if the page is currently in use or locked.

---

man/man2/madvise.2 +0 -0
index 441edfbc1..13ee7957c 100644

man/man2/madvise.2 The map exists, but the area maps something that isn't a file. · line 708

Quoted 7 lines
man/man2/madvise.2 +4 -0
@@ -702,6 +702,11 @@ The map exists, but the area maps something that isn't a file.
 .BR MADV_COLLAPSE )
 Could not charge hugepage to cgroup: cgroup limit exceeded.
 .TP
+.B EBUSY
+(for
+.B MADV_SOFT_OFFLINE )
+If any page(s) within the add+length range could not be offlined madvise will return -EBUSY. This might occur if the page is currently in use or locked.

"any pages" includes the possible value 1; there's no need for "()".

Please use semantic newlines. See man-pages(7).

$ MANWIDTH=72 man man-pages | sed -n '/Use semantic newlines/,/^$/p'
   Use semantic newlines
     In  the  source of a manual page, new sentences should be started
     on new lines, long sentences should be split into lines at clause
     breaks (commas, semicolons, colons, and so on), and long  clauses
     should be split at phrase boundaries.  This convention, sometimes
     known  as  "semantic newlines", makes it easier to see the effect
     of patches, which often operate at the level of  individual  sen‐
     tences, clauses, or phrases.

Have a lovely day!
Alex

Quoted 5 lines
man/man2/madvise.2 +1 -0
+.TP
 .B EFAULT
 .I advice
 is
Signature · 1 line
<https://www.alejandro-colomar.es/>