Skip to content

KSMscale cleanup/optimizations

Andrea Arcangeli linux-mm 1 version Applied

Status from this message: [merged] ksm-optimize-refile-of-stable_node_dup-at-the-head-of-the-chain.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyApplied 3/3

Patches in v1 All 3 applied

#Subject and filesSizeRepliesApplied
1/3ksm: cleanup stable_node chain collapse casemm/ksm.c+28 -220 repliesApplied
2/3ksm: swap the two output parameters of chain/chain_prunemm/ksm.c+52 -260 repliesApplied
3/3ksm: optimize refile of stable_node_dup at the head of the chainmm/ksm.c+23 -120 repliesApplied

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/3] KSMscale cleanup/optimizations

Hello,

This is incremental with the two fixes already in -mm.

There are no fixes here it's just minor cleanups and optimizations.

1/3 removes makes the "fix" for the stale stable_node fall in the standard case without introducing new cases. Setting stable_node to NULL was marginally safer, but stale pointer is still wiped from the caller, this looks cleaner.

2/3 should fix the false positive from Dan's static checker. Dan could you check if it still complains?

3/3 is a microoptimization to apply the the refile of future merge candidate dups at the head of the chain in all cases and to skip it in one case where we did it and but it was a noop (to avoid checking if it was already at the head but now we've to check it anyway so it got optimized away).

Andrea Arcangeli (3):
ksm: cleanup stable_node chain collapse case
ksm: swap the two output parameters of chain/chain_prune
ksm: optimize refile of stable_node_dup at the head of the chain

 mm/ksm.c | 163 ++++++++++++++++++++++++++++++++++++++++-----------------------
 1 file changed, 103 insertions(+), 60 deletions(-)

--
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>