Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1322246
| From | riel@redhat.com |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 0/2] sched,time: reduce nohz_full syscall overhead 40% |
| Date | 2016-01-30 04:40 +0100 |
| Message-ID | <qWuyd-51K-15@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
unning with nohz_full introduces a fair amount of overhead.
Specifically, various things that are usually done from the
timer interrupt are now done at syscall, irq, and guest
entry and exit times.
However, some of the code that is called every single time
has only ever worked at jiffy resolution. The code in
__acct_update_integrals was also doing some unnecessary
calculations.
Getting rid of the unnecessary calculations, without
changing any of the functionality in __acct_update_integrals
gets us about an 11% win.
Not calling the time statistics updating code more than
once per jiffy, like is done on housekeeping CPUs and on
all the CPUs of a non-nohz_full system, shaves off a
further 30%.
I tested this series with a microbenchmark calling
an invalid syscall number ten million times in a row,
on a nohz_full cpu.
Run times for the microbenchmark:
4.4 3.8 seconds
4.5-rc1 3.7 seconds
4.5-rc1 + first patch 3.3 seconds
4.5-rc1 + first 3 patches 3.1 seconds
4.5-rc1 + all patches 2.3 seconds
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH 0/2] sched,time: reduce nohz_full syscall overhead 40% riel@redhat.com - 2016-01-30 04:40 +0100
[PATCH 4/4] sched,time: only call account_{user,sys,guest,idle}_time once a jiffy riel@redhat.com - 2016-01-30 04:40 +0100
[PATCH 2/4] acct,time: change indentation in __acct_update_integrals riel@redhat.com - 2016-01-30 04:40 +0100
Re: [PATCH 2/4] acct,time: change indentation in __acct_update_integrals Frederic Weisbecker <fweisbec@gmail.com> - 2016-01-30 17:20 +0100
[PATCH 3/4] time,acct: drop irq save & restore from __acct_update_integrals riel@redhat.com - 2016-01-30 04:40 +0100
Re: [PATCH 3/4] time,acct: drop irq save & restore from __acct_update_integrals Frederic Weisbecker <fweisbec@gmail.com> - 2016-01-30 17:30 +0100
csiph-web