The patch titled readahead: call scheme - no fastcall for readahead_cache_hit() has been added to the -mm tree. Its filename is readahead-call-scheme-no-fastcall-for-readahead_cache_hit.patch See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: readahead: call scheme - no fastcall for readahead_cache_hit() From: Wu Fengguang <wfg@xxxxxxxxxxxxxxxx> Remove 'fastcall' directive for readahead_cache_hit(). It leads to unfavorable performance in the following micro benchmark on i386 with CONFIG_REGPARM=n: Command: time cp cold /dev/null Summary: user sys cpu total no-fastcall 1.24 24.88 90.9 28.57 fastcall 1.16 25.69 91.5 29.23 Details: without fastcall: cp cold /dev/null 1.27s user 24.63s system 91% cpu 28.348 total cp cold /dev/null 1.17s user 25.09s system 91% cpu 28.653 total cp cold /dev/null 1.24s user 24.75s system 91% cpu 28.448 total cp cold /dev/null 1.20s user 25.04s system 91% cpu 28.614 total cp cold /dev/null 1.31s user 24.67s system 91% cpu 28.499 total cp cold /dev/null 1.30s user 24.87s system 91% cpu 28.530 total cp cold /dev/null 1.26s user 24.84s system 91% cpu 28.542 total cp cold /dev/null 1.16s user 25.15s system 90% cpu 28.925 total with fastcall: cp cold /dev/null 1.16s user 26.39s system 91% cpu 30.061 total cp cold /dev/null 1.25s user 26.53s system 91% cpu 30.378 total cp cold /dev/null 1.10s user 25.32s system 92% cpu 28.679 total cp cold /dev/null 1.15s user 25.20s system 91% cpu 28.747 total cp cold /dev/null 1.19s user 25.38s system 92% cpu 28.841 total cp cold /dev/null 1.11s user 25.75s system 92% cpu 29.126 total cp cold /dev/null 1.17s user 25.49s system 91% cpu 29.042 total cp cold /dev/null 1.17s user 25.49s system 92% cpu 28.970 total Signed-off-by: Wu Fengguang <wfg@xxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- include/linux/mm.h | 2 +- mm/readahead.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff -puN include/linux/mm.h~readahead-call-scheme-no-fastcall-for-readahead_cache_hit include/linux/mm.h --- devel/include/linux/mm.h~readahead-call-scheme-no-fastcall-for-readahead_cache_hit 2006-06-09 01:22:52.000000000 -0700 +++ devel-akpm/include/linux/mm.h 2006-06-09 01:22:52.000000000 -0700 @@ -997,7 +997,7 @@ page_cache_readahead_adaptive(struct add struct file_ra_state *ra, struct file *filp, struct page *prev_page, struct page *page, pgoff_t first_index, pgoff_t index, pgoff_t last_index); -void fastcall readahead_cache_hit(struct file_ra_state *ra, struct page *page); +void readahead_cache_hit(struct file_ra_state *ra, struct page *page); #ifdef CONFIG_ADAPTIVE_READAHEAD extern int readahead_ratio; diff -puN mm/readahead.c~readahead-call-scheme-no-fastcall-for-readahead_cache_hit mm/readahead.c --- devel/mm/readahead.c~readahead-call-scheme-no-fastcall-for-readahead_cache_hit 2006-06-09 01:22:52.000000000 -0700 +++ devel-akpm/mm/readahead.c 2006-06-09 01:22:52.000000000 -0700 @@ -1822,7 +1822,7 @@ readit: * readahead_cache_hit() is the feedback route of the adaptive read-ahead * logic. It must be called on every access on the read-ahead pages. */ -void fastcall readahead_cache_hit(struct file_ra_state *ra, struct page *page) +void readahead_cache_hit(struct file_ra_state *ra, struct page *page) { if (PageActive(page) || PageReferenced(page)) return; _ Patches currently in -mm which might be from wfg@xxxxxxxxxxxxxxxx are radixtree-normalize-radix_tree_tag_get-return-value.patch readahead-kconfig-options.patch radixtree-introduce-radix_tree_scan_hole.patch mm-introduce-probe_page.patch mm-introduce-pg_readahead.patch readahead-add-look-ahead-support-to-__do_page_cache_readahead.patch readahead-delay-page-release-in-do_generic_mapping_read.patch readahead-insert-cond_resched-calls.patch readahead-minmax_ra_pages.patch readahead-events-accounting.patch readahead-rescue_pages.patch readahead-sysctl-parameters.patch readahead-sysctl-parameters-fix.patch readahead-min-max-sizes.patch readahead-state-based-method-aging-accounting.patch readahead-state-based-method-routines.patch readahead-state-based-method-routines-no-ra_flag_eof-on-single-page-file.patch readahead-state-based-method.patch readahead-state-based-method-readahead-state-based-method-stand-alone-size-limit-code.patch readahead-context-based-method.patch readahead-context-based-method-apply-stream_shift-size-limits-to-contexta-method.patch readahead-context-based-method-fix-remain-counting.patch readahead-initial-method-guiding-sizes.patch readahead-initial-method-guiding-sizes-aggressive-initial-sizes.patch readahead-initial-method-thrashing-guard-size.patch readahead-initial-method-expected-read-size.patch readahead-initial-method-user-recommended-size.patch readahead-initial-method.patch readahead-backward-prefetching-method.patch readahead-backward-prefetching-method-add-use-case-comment.patch readahead-seeking-reads-method.patch readahead-thrashing-recovery-method.patch readahead-call-scheme.patch readahead-call-scheme-fix-fastcall.patch readahead-call-scheme-no-fastcall-for-readahead_cache_hit.patch readahead-laptop-mode.patch readahead-loop-case.patch readahead-nfsd-case.patch readahead-turn-on-by-default.patch readahead-debug-radix-tree-new-functions.patch readahead-debug-traces-showing-accessed-file-names.patch readahead-debug-traces-showing-read-patterns.patch readahead-backoff-on-i-o-error.patch readahead-remove-size-limit-on-read_ahead_kb.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html