Skip to content

A few simplifications for softdirty memory tracker code

Cyrill Gorcunov linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mm: pgtable -- Drop unneeded preprocessor ifdefarch/x86/include/asm/pgtable-2level.h arch/x86/include/asm/pgtable_64.h+0 -180 replies
2/2mm: pgtable -- Require X86_64 for soft-dirty trackerarch/x86/Kconfig arch/x86/include/asm/pgtable-2level.h+1 -504 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/2] A few simplifications for softdirty memory tracker code

Hi, here are a few simplifications for softdirty memory tracker code, in particular we dropped off x86-32 support since it seems noone needed it here on x86 platform.

As Andrew requested I've rebased patches on top of current linux-next repo.

Also at first I wanted to rip off _PAGE_PSE bit which we use in swap ptes to track dirty status of swapped pages and reuse _PAGE_BIT_SOFT_DIRTY instead. It's still possible but requires additional shrinking of maximal swap size and I don't know if it's acceptible or not. Currently we have

#ifdef CONFIG_NUMA_BALANCING
/* Automatic NUMA balancing needs to be distinguishable from swap entries */ #define SWP_OFFSET_SHIFT (_PAGE_BIT_PROTNONE + 2)
#else
#define SWP_OFFSET_SHIFT (_PAGE_BIT_PROTNONE + 1)
#endif

If I reuse _PAGE_BIT_SOFT_DIRTY I'll have to increase this shift up to bit 11, which, again, I think is too much, right?

Comments are highly appreciated!

Cyrill

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>