Skip to content

mm: optimisations

Nick Piggin lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4mm: page refcount use atomic primitivesinclude/linux/mm.h mm/swap.c mm/vmscan.c+60 -550 replies
2/4mm: PageLRU no testsetinclude/linux/page-flags.h mm/swap.c mm/vmscan.c+16 -170 replies
3/4mm: PageActive no testsetinclude/linux/page-flags.h mm/swap.c mm/vmscan.c+5 -60 replies
4/4mm: less atomic opsinclude/linux/mm_inline.h include/linux/page-flags.h mm/swap.c+5 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [patch 0/4] mm: optimisations

The following patchset (against 2.6.15-rc5ish) uses the new atomic ops to do away with the offset page refcounting, and simplify the race that it was designed to cover.

This allows some nice optimisations, and we end up saving 2 atomic ops including a spin_lock_irqsave in the !PageLRU case, and 2 or 3 atomic ops in the PageLRU case in the page-release path.

It also happens to be a requirement for my lockless pagecache work, but they stand on their own as good patches.

Nick

Signature · 4 lines
SUSE Labs, Novell Inc.


Send instant messages to your online friends http://au.messenger.yahoo.com