[Devel] [PATCH 0/4] Make kstat_glob::swap_in percpu and cleanup

Kirill Tkhai ktkhai at virtuozzo.com
Mon Dec 11 18:10:54 MSK 2017


This patchset continues escaping of kstat_glb_lock
and makes swap_in percpu. Also, newly unused primitives
are dropped and reduced memory usage by using percpu
seqcount (instead of separate percpu seqcount for every
kstat percpu variable).

---

Kirill Tkhai (4):
      kstat: Make kstat_glob::swap_in percpu
      kstat: Drop global kstat_lat_struct
      kstat: Drop cpu argument in KSTAT_LAT_PCPU_ADD()
      kstat: Make global percpu kstat_pcpu_seq instead of percpu seq for every variable


 include/linux/vzstat.h  |   17 +++++------------
 kernel/sched/core.c     |    7 +++++++
 kernel/sched/fair.c     |    8 ++------
 kernel/ve/vzstat.c      |    2 +-
 kernel/ve/vzstat_core.c |   45 ++++++++++++---------------------------------
 mm/memory.c             |    9 ++++-----
 mm/page_alloc.c         |    2 +-
 7 files changed, 32 insertions(+), 58 deletions(-)

--
Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>


More information about the Devel mailing list