* Swappiness fix?
@ 2008-12-01 9:35 Gene Heskett
2008-12-01 9:44 ` KOSAKI Motohiro
2008-12-02 6:50 ` Andrew Morton
0 siblings, 2 replies; 4+ messages in thread
From: Gene Heskett @ 2008-12-01 9:35 UTC (permalink / raw)
To: LKML
Greetings;
Has that patch someone pointed me to made it into -rc6? I have a bit under 9
hours uptime on a 4Gb machine, with a gimp session, email and web browsing,
and I see I'm 27 megs into swap. I do not have the patch now, a drive died.
However, I may still have the email that contained it, I'll check that.
That patch, IMO should be fast lane'd to make it to .28.
--
Cheers, Gene
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Neutrinos have bad breadth.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Swappiness fix?
2008-12-01 9:35 Swappiness fix? Gene Heskett
@ 2008-12-01 9:44 ` KOSAKI Motohiro
2008-12-02 6:50 ` Andrew Morton
1 sibling, 0 replies; 4+ messages in thread
From: KOSAKI Motohiro @ 2008-12-01 9:44 UTC (permalink / raw)
To: Gene Heskett; +Cc: kosaki.motohiro, LKML, linux-mm, Rik van Riel
Hi
> Greetings;
>
> Has that patch someone pointed me to made it into -rc6? I have a bit under 9
> hours uptime on a 4Gb machine, with a gimp session, email and web browsing,
> and I see I'm 27 megs into swap. I do not have the patch now, a drive died.
> However, I may still have the email that contained it, I'll check that.
>
> That patch, IMO should be fast lane'd to make it to .28.
Could you please try to mmotm?
As far as I know, nobody give Tested-by to the fixing patch.
if you can test it, I'm very glad.
thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Swappiness fix?
@ 2008-12-01 9:44 ` KOSAKI Motohiro
0 siblings, 0 replies; 4+ messages in thread
From: KOSAKI Motohiro @ 2008-12-01 9:44 UTC (permalink / raw)
To: Gene Heskett; +Cc: kosaki.motohiro, LKML, linux-mm, Rik van Riel
Hi
> Greetings;
>
> Has that patch someone pointed me to made it into -rc6? I have a bit under 9
> hours uptime on a 4Gb machine, with a gimp session, email and web browsing,
> and I see I'm 27 megs into swap. I do not have the patch now, a drive died.
> However, I may still have the email that contained it, I'll check that.
>
> That patch, IMO should be fast lane'd to make it to .28.
Could you please try to mmotm?
As far as I know, nobody give Tested-by to the fixing patch.
if you can test it, I'm very glad.
thanks.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Swappiness fix?
2008-12-01 9:35 Swappiness fix? Gene Heskett
2008-12-01 9:44 ` KOSAKI Motohiro
@ 2008-12-02 6:50 ` Andrew Morton
1 sibling, 0 replies; 4+ messages in thread
From: Andrew Morton @ 2008-12-02 6:50 UTC (permalink / raw)
To: Gene Heskett; +Cc: LKML
On Mon, 01 Dec 2008 04:35:41 -0500 Gene Heskett <gene.heskett@gmail.com> wrote:
> Greetings;
>
> Has that patch someone pointed me to made it into -rc6? I have a bit under 9
> hours uptime on a 4Gb machine, with a gimp session, email and web browsing,
> and I see I'm 27 megs into swap. I do not have the patch now, a drive died.
> However, I may still have the email that contained it, I'll check that.
This?
From: Rik van Riel <riel@redhat.com>
Count the insertion of new pages in the statistics used to drive the
pageout scanning code. This should help the kernel quickly evict
streaming file IO.
We count on the fact that new file pages start on the inactive file LRU
and new anonymous pages start on the active anon list. This means
streaming file IO will increment the recent scanned file statistic, while
leaving the recent rotated file statistic alone, driving pageout scanning
to the file LRUs.
Pageout activity does its own list manipulation.
Signed-off-by: Rik van Riel <riel@redhat.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Gene Heskett <gene.heskett@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/swap.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff -puN mm/swap.c~vmscan-evict-streaming-io-first mm/swap.c
--- a/mm/swap.c~vmscan-evict-streaming-io-first
+++ a/mm/swap.c
@@ -445,6 +445,7 @@ void ____pagevec_lru_add(struct pagevec
for (i = 0; i < pagevec_count(pvec); i++) {
struct page *page = pvec->pages[i];
struct zone *pagezone = page_zone(page);
+ int file;
if (pagezone != zone) {
if (zone)
@@ -456,8 +457,12 @@ void ____pagevec_lru_add(struct pagevec
VM_BUG_ON(PageUnevictable(page));
VM_BUG_ON(PageLRU(page));
SetPageLRU(page);
- if (is_active_lru(lru))
+ file = is_file_lru(lru);
+ zone->recent_scanned[file]++;
+ if (is_active_lru(lru)) {
SetPageActive(page);
+ zone->recent_rotated[file]++;
+ }
add_page_to_lru_list(zone, page, lru);
}
if (zone)
_
> That patch, IMO should be fast lane'd to make it to .28.
I have it sitting here marked "awaits Gene testing" ;)
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-12-02 6:51 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-01 9:35 Swappiness fix? Gene Heskett
2008-12-01 9:44 ` KOSAKI Motohiro
2008-12-01 9:44 ` KOSAKI Motohiro
2008-12-02 6:50 ` Andrew Morton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.