Skip to contentSkip to conversation

free swap space when (re)activating page

PATCH Bodo Eggert 2 participants 2 messages Feb 23, 2007 8 messages not in the archive Memory management

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#8 lore raw

Rik van Riel <[email protected]> wrote:

+++ linux-2.6.20.noarch/mm/swap.c        2007-02-20 06:44:17.000000000 -0500 @@ -420,6 +420,26 @@ void pagevec_strip(struct pagevec *pvec)

Quoted 3 lines

+                        if (printk_ratelimit())
+                                printk("kswapd freed a swap space\n");

NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO!!!!!!!!!!!

1) This message is a debug message! You forgot to set the printk level.

2) The message text is bad, the average log reader only knows swap files and pages in swapfiles. The first reaction will be like "WTF happened to my swap???". Thousands of admins will cry out in anguish trying to get the meaning of this message, and again cry out in wrath after they found out.

3) What should I do if I see this message? It's neither good, nor bad for me, nor is it in any way informative even if it were changed to be meaningfull. It's utterly useless! Let it be!

Signature · 4 lines
We are all born ignorant, but one must work hard to remain stupid.
        -- Benjamin Franklin

Friß, Spammer: [email protected]
#9 lore raw
Quoted 9 lines · Bodo Eggert

Rik van Riel <[email protected]> wrote:

+++ linux-2.6.20.noarch/mm/swap.c 2007-02-20 06:44:17.000000000 -0500

(quoted diff) +0 -0
@@ -420,6 +420,26 @@ void pagevec_strip(struct pagevec *pvec)
 
 > +                        if (printk_ratelimit())
 > +                                printk("kswapd freed a swap space\n");
Quoted 1 line
Quoted 3 lines

NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO!!!!!!!!!!!

1) This message is a debug message! You forgot to set the printk level.

Doh, I forgot to cut it out of the patch when I fixed it according to Christoph's hint.

This chunk should be removed from the patch...

Andrew, I'll send you a new one tomorrow morning.

Signature · 9 lines
Politics is the struggle between those who want to make their country
the best in the world, and those who believe it already is.  Each group
calls the other unpatriotic.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>