Re: [PATCH 06/11] Export fragmentation index via /proc/extfrag_index

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Mel Gorman
Date: Thursday, March 25, 2010 - 7:11 am

On Thu, Mar 25, 2010 at 08:20:04PM +0900, KOSAKI Motohiro wrote:

Ok, I cannot apologise for this enough.

Since that paper was published, further work showed that the equation could
be much improved. As part of that, I updated the equation to the following;

double index = 1    - ( (1    + ((double)info->free_pages        / requested)) / info->free_blocks_total);

or when approximated to three decimal places

int index =    1000 - ( (1000 + (        info->free_pages * 1000 / requested)) / info->free_blocks_total);

Your analysis of the paper is perfect. When slotted into a driver program
with your example figures, I get the following results

old equation = 0.500000
current equation = 0.250000
integer approximation = 250

The code as-is is correct and is what I intended. My explanation on the
other hand sucks and I should have remembered that I updated equation since
I published that paper 2 years ago.

Again, I am extremely sorry for misleading you.

-- 
Mel Gorman
Part-time Phd Student                          Linux Technology Center
University of Limerick                         IBM Dublin Software Lab
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/11] Memory Compaction v4, Mel Gorman, (Fri Mar 12, 9:41 am)
[PATCH 07/11] Memory compaction core, Mel Gorman, (Fri Mar 12, 9:41 am)
Re: [PATCH 05/11] Export unusable free space index via /pr ..., KAMEZAWA Hiroyuki, (Sun Mar 14, 10:41 pm)
Re: [PATCH 07/11] Memory compaction core, Minchan Kim, (Mon Mar 15, 6:44 am)
Re: [PATCH 07/11] Memory compaction core, Mel Gorman, (Mon Mar 15, 7:41 am)
Re: [PATCH 08/11] Add /proc trigger for memory compaction, KOSAKI Motohiro, (Tue Mar 16, 8:18 pm)
Re: [PATCH 07/11] Memory compaction core, KOSAKI Motohiro, (Wed Mar 17, 3:31 am)
Re: [PATCH 07/11] Memory compaction core, Mel Gorman, (Wed Mar 17, 4:40 am)
Re: [PATCH 04/11] Allow CONFIG_MIGRATION to be set without ..., Christoph Lameter, (Wed Mar 17, 9:37 am)
Re: [PATCH 07/11] Memory compaction core, KOSAKI Motohiro, (Wed Mar 17, 7:35 pm)
Re: [PATCH 07/11] Memory compaction core, Mel Gorman, (Thu Mar 18, 4:43 am)
Re: [PATCH 07/11] Memory compaction core, Mel Gorman, (Thu Mar 18, 10:08 am)
Re: [PATCH 07/11] Memory compaction core, KOSAKI Motohiro, (Thu Mar 18, 11:21 pm)
Re: [PATCH 06/11] Export fragmentation index via /proc/ext ..., Mel Gorman, (Thu Mar 25, 7:11 am)