-hiroyasu ohyama
I wonder what corrected attached source makes good performance of
getting page slot cluster from page area discripter which is written
"si" in the source codes.
Because I think head of swap_list_t discripter doesn't suggest index of
swap area which is same priority that swap_list.next but one which is
the highest priority in the priority's list.
the si->swap_map which have high priority may be chosen by
get_swap_page(), so that page slot of low priority's swap area may have
more blank cluster than one of hich priority's swap area.
Then, I think substitute "swap_list.head" for "next" is privent them
from finding cluster of page slot when "swap_info[next].prio"'s priority
is different swap_list.next.
---
*** mm/swapfile_bck.c 2007-10-04 12:09:37.000000000 +0900
--- mm/swapfile.c 2007-10-04 12:31:34.000000000 +0900
***************
*** 186,193 ****
for (type = swap_list.next; type >= 0 && wrapped < 2; type = next) {
si = swap_info + type;
next = si->next;
! if (next < 0 ||
! (!wrapped && si->prio != swap_info[next].prio)) {
next = swap_list.head;
wrapped++;
}
--- 186,192 ----
for (type = swap_list.next; type >= 0 && wrapped < 2; type = next) {
si = swap_info + type;
next = si->next;
! if (next < 0) {
next = swap_list.head;
wrapped++;
}
-
| Andrew Morton | Re: Linux 2.6.21-rc4 |
| Andrew Morton | -mm merge plans for 2.6.23 |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Balbir Singh | Re: [RFC][PATCH 2/7] RSS controller core |
git: | |
| Gerrit Renker | [PATCH 15/37] dccp: Set per-connection CCIDs via socket options |
| David Miller | [GIT]: Networking |
| Andreas Henriksson | [PATCH 06/12] Remove bogus reference to tc-filters(8) from tc(8) manpage. |
| Jarek Poplawski | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
