mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* try_to_swap_out() deactivating pages w. count > 2
@ 2001-04-21 15:48 Mike Galbraith
  2001-04-21 16:08 ` Mike Galbraith
  2001-04-21 16:42 ` Rik van Riel
  0 siblings, 2 replies; 8+ messages in thread
From: Mike Galbraith @ 2001-04-21 15:48 UTC (permalink / raw)
  To: linux-kernel

Hi,

A printk added to 2.4.4-pre5 try_to_swap_out()...

drop_pte:
		mm->rss--;
{
	int age = page->age;
	int count = page_count(page);
	int cache = PageSwapCache(page);
	printk("[pid-%d] page:%p deact:%d cache:%d age:%d count:%d\n",
			current->pid, page, !age, cache, age, count-1);
}

make -j30 bzImage

29:17: klogd 1.3-3, log source = /proc/kmsg started.
29:27: SysRq: Log level set to 0
30:04: [pid-4] page:c10e225c deact:1 cache:0 age:0 count:2
30:04: [pid-4] page:c10e33e0 deact:1 cache:0 age:0 count:2
30:04: [pid-4] page:c10e3394 deact:1 cache:0 age:0 count:2
30:04: [pid-4] page:c10e1cb8 deact:1 cache:0 age:0 count:2
30:04: [pid-4] page:c10e1c20 deact:1 cache:0 age:0 count:2
30:04: [pid-4] page:c10eb894 deact:1 cache:0 age:0 count:2
30:04: [pid-4] page:c10eb7b0 deact:1 cache:0 age:0 count:2
30:04: [pid-4] page:c10f0bb4 deact:0 cache:0 age:4 count:3
30:04: [pid-4] page:c10f1320 deact:0 cache:1 age:2 count:1
30:04: [pid-4] page:c10f136c deact:0 cache:1 age:2 count:1
30:04: [pid-4] page:c10599f4 deact:0 cache:0 age:29 count:164 [164? 1]
30:04: [pid-4] page:c10599a8 deact:0 cache:0 age:26 count:164
30:04: [pid-4] page:c105995c deact:0 cache:0 age:37 count:164
30:04: [pid-4] page:c10598c4 deact:0 cache:0 age:34 count:164
30:04: [pid-4] page:c1059878 deact:0 cache:0 age:34 count:164
30:04: [pid-4] page:c105982c deact:0 cache:0 age:34 count:164
30:04: [pid-4] page:c10599f4 deact:0 cache:0 age:32 count:163
30:04: [pid-4] page:c10599a8 deact:0 cache:0 age:26 count:163
30:04: [pid-4] page:c10debbc deact:1 cache:0 age:0 count:2
30:04: [pid-4] page:c10deb70 deact:1 cache:0 age:0 count:2
30:04: [pid-4] page:c10deb24 deact:1 cache:0 age:0 count:2
30:04: [pid-4] page:c10e1aa4 deact:1 cache:0 age:0 count:2

(snip 1000+ lines)

grep c10599f4 log
30:04: [pid-4] page:c10599f4 deact:0 cache:0 age:29 count:164
30:04: [pid-4] page:c10599f4 deact:0 cache:0 age:32 count:163
30:04: [pid-4] page:c10599f4 deact:0 cache:0 age:32 count:162
30:04: [pid-4] page:c10599f4 deact:0 cache:0 age:32 count:161
30:04: [pid-4] page:c10599f4 deact:0 cache:0 age:32 count:160
30:04: [pid-4] page:c10599f4 deact:0 cache:0 age:32 count:159
30:04: [pid-4] page:c10599f4 deact:0 cache:0 age:32 count:158
30:04: [pid-4] page:c10599f4 deact:0 cache:0 age:32 count:157
30:05: [pid-4] page:c10599f4 deact:0 cache:0 age:16 count:155
30:05: [pid-4] page:c10599f4 deact:0 cache:0 age:22 count:156
30:05: [pid-4] page:c10599f4 deact:0 cache:0 age:22 count:155
30:05: [pid-4] page:c10599f4 deact:0 cache:0 age:50 count:157
30:05: [pid-4] page:c10599f4 deact:0 cache:0 age:16 count:157
41:41: [pid-4] page:c10599f4 deact:1 cache:0 age:0 count:59
41:41: [pid-4] page:c10599f4 deact:1 cache:0 age:0 count:58
41:41: [pid-4] page:c10599f4 deact:1 cache:0 age:0 count:57
41:41: [pid-4] page:c10599f4 deact:1 cache:0 age:0 count:56
41:41: [pid-4] page:c10599f4 deact:1 cache:0 age:0 count:55
41:41: [pid-4] page:c10599f4 deact:1 cache:0 age:0 count:54
41:41: [pid-4] page:c10599f4 deact:1 cache:0 age:0 count:53
41:41: [pid-4] page:c10599f4 deact:1 cache:0 age:0 count:52
41:41: [pid-4] page:c10599f4 deact:1 cache:0 age:0 count:51
41:41: [pid-4] page:c10599f4 deact:1 cache:0 age:0 count:50
41:59: [pid-4] page:c10599f4 deact:1 cache:0 age:0 count:49
41:59: [pid-4] page:c10599f4 deact:1 cache:0 age:0 count:48
41:59: [pid-4] page:c10599f4 deact:1 cache:0 age:0 count:47
41:59: [pid-4] page:c10599f4 deact:1 cache:0 age:0 count:46
41:59: [pid-4] page:c10599f4 deact:1 cache:0 age:0 count:45
41:59: [pid-4] page:c10599f4 deact:1 cache:0 age:0 count:44

(klogd only logged 1196 pages during the whole build)

grep deact:0 log|wc -l                 = 961
grep count:[12] log|wc -l              = 875

grep deact:1 log|wc -l                 = 235
grep deact:1 log|grep count:[12]|wc -l = 103

1.  what kind of page has 164 references?
2.  why deactivate pages (lots) with count > 2?  PINGpong.

	-Mike


^ permalink raw reply	[flat|nested] 8+ messages in thread
[parent not found: <200104211742.KAA17813@penguin.transmeta.com>]

end of thread, other threads:[~2001-04-21 18:03 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-21 15:48 try_to_swap_out() deactivating pages w. count > 2 Mike Galbraith
2001-04-21 16:08 ` Mike Galbraith
2001-04-21 16:42 ` Rik van Riel
2001-04-21 17:42   ` Linus Torvalds
2001-04-21 17:48   ` Mike Galbraith
     [not found] <200104211742.KAA17813@penguin.transmeta.com>
2001-04-21 17:51 ` Rik van Riel
2001-04-21 17:55   ` Rik van Riel
2001-04-21 18:03   ` Linus Torvalds

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®