linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* question on page-migration code
@ 2005-04-07 23:05 Ray Bryant
  0 siblings, 0 replies; 22+ messages in thread
From: Ray Bryant @ 2005-04-07 23:05 UTC (permalink / raw)
  To: Hirokazu Takahashi; +Cc: Marcelo Tosatti, Dave Hansen, linux-mm

Well, even my previous description is not quite correct.
Here are the times for a series of 20 migrations,
from nodes 0-3 to 4-7, and then back again:

0.134u 1.425s 0:02.98 52.0%     0+0k 0+0io 1pf+0w
0.124u 0.395s 3:22.11 0.2%      0+0k 0+0io 24pf+0w
0.154u 1.494s 0:03.03 54.1%     0+0k 0+0io 8pf+0w
0.134u 1.137s 1:04.38 1.9%      0+0k 0+0io 28pf+0w
0.119u 0.723s 1:20.16 1.0%      0+0k 0+0io 8pf+0w
0.142u 1.299s 0:39.06 3.6%      0+0k 0+0io 28pf+0w
0.124u 0.526s 2:20.03 0.4%      0+0k 0+0io 0pf+0w
0.135u 1.336s 0:22.18 6.5%      0+0k 0+0io 0pf+0w
0.125u 1.128s 0:36.73 3.3%      0+0k 0+0io 8pf+0w
0.129u 1.099s 0:59.17 2.0%      0+0k 0+0io 28pf+0w
0.130u 0.679s 1:53.12 0.7%      0+0k 0+0io 8pf+0w
0.139u 1.193s 0:52.88 2.4%      0+0k 0+0io 28pf+0w
0.121u 0.621s 1:57.64 0.6%      0+0k 0+0io 8pf+0w
0.127u 1.241s 0:43.46 3.1%      0+0k 0+0io 28pf+0w
0.127u 0.734s 1:19.92 1.0%      0+0k 0+0io 8pf+0w
0.126u 1.317s 0:51.17 2.7%      0+0k 0+0io 28pf+0w
0.137u 0.613s 2:19.44 0.5%      0+0k 0+0io 8pf+0w
0.113u 1.290s 0:42.33 3.3%      0+0k 0+0io 28pf+0w
0.125u 0.538s 2:06.91 0.5%      0+0k 0+0io 7pf+0w
0.128u 1.328s 0:41.59 3.4%      0+0k 0+0io 28pf+0w

So trial #3 is an anamoly, since it completed quickly
as well.  All the rest of the trials completed very
slowly, in comparison.

Any idea what is going on here?

AFAIK, the test program is in steady state and doesn't
do any I/O.  So its behavior should not be a factor.
-- 
Best Regards,
Ray
-----------------------------------------------
                   Ray Bryant
512-453-9679 (work)         512-507-7807 (cell)
raybry@sgi.com             raybry@austin.rr.com
The box said: "Requires Windows 98 or better",
            so I installed Linux.
-----------------------------------------------
--
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:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] 22+ messages in thread
* question on page-migration code
@ 2005-04-07 22:16 Ray Bryant
  2005-04-07 18:08 ` Marcelo Tosatti
  2005-04-07 22:44 ` Ray Bryant
  0 siblings, 2 replies; 22+ messages in thread
From: Ray Bryant @ 2005-04-07 22:16 UTC (permalink / raw)
  To: Hirokazu Takahashi; +Cc: Marcelo Tosatti, Dave Hansen, linux-mm

Hirokazu (and Marcelo),

In testing my manual page migration code, I've run up against a situation
where the migrations are occasionally very slow.  They work ok, but they
can take minutes to migrate a few megabytes of memory.

Dropping into kdb shows that the migration code is waiting in msleep() in
migrate_page_common() due to an -EAGAIN return from page_migratable().
A little further digging shows that the specific return in page_migratable()
is the very last one there at the bottom of the routine.

I'm puzzled as to why the page is still busy in this case.  Previous code
in page_migratable() has unmapped the page, its not in PageWriteback()
because we would have taken a different return statement in that case.

According to /proc/meminfo, there are no pages in either SwapCache or
Dirty state, and the system has been sync'd before the migrate_pages()
call was issued.
-- 
Best Regards,
Ray
-----------------------------------------------
                   Ray Bryant
512-453-9679 (work)         512-507-7807 (cell)
raybry@sgi.com             raybry@austin.rr.com
The box said: "Requires Windows 98 or better",
            so I installed Linux.
-----------------------------------------------
--
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:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2005-04-20 18:16 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-07 23:05 question on page-migration code Ray Bryant
  -- strict thread matches above, loose matches on Subject: below --
2005-04-07 22:16 Ray Bryant
2005-04-07 18:08 ` Marcelo Tosatti
2005-04-11 14:20   ` Ray Bryant
2005-04-11 18:31   ` Ray Bryant
2005-04-11 23:41     ` Hirokazu Takahashi
2005-04-12  4:57       ` Ray Bryant
2005-04-12  5:43       ` Ray Bryant
2005-04-13  2:30         ` IWAMOTO Toshihiro
2005-04-13  4:43         ` Hirokazu Takahashi
2005-04-15  6:41         ` IWAMOTO Toshihiro
2005-04-15 12:53           ` Marcelo Tosatti
2005-04-18 10:37             ` IWAMOTO Toshihiro
2005-04-12 16:46       ` Dave Hansen
2005-04-13 10:48         ` Hirokazu Takahashi
2005-04-14 15:57           ` Marcelo Tosatti
2005-04-19  2:46           ` Ray Bryant
2005-04-20 18:16             ` Marcelo Tosatti
2005-04-12 19:29       ` Ray Bryant
2005-04-11 19:00   ` Ray Bryant
2005-04-11 19:59   ` Ray Bryant
2005-04-07 22:44 ` Ray Bryant

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