RCU, cond_resched(), and performance regressions
RCU, cond_resched(), and performance regressions
Posted Jun 26, 2014 23:46 UTC (Thu) by gerdesj (subscriber, #5446)In reply to: RCU, cond_resched(), and performance regressions by PaulMcKenney
Parent article: RCU, cond_resched(), and performance regressions
What kind of workload would: "... opens and closes a lot of files while doing little else ..."?
Cheers
Jon
Posted Jun 27, 2014 2:50 UTC (Fri)
by mathstuf (subscriber, #69389)
[Link]
Virus scanner (though this probably reads quite a bit too). File indexer (small, targeted reads for things like ID3 and EXIF tags). Emacs (I kid, I kid). Nothing else comes to mind at the moment.
Posted Jun 27, 2014 16:51 UTC (Fri)
by hansendc (subscriber, #7363)
[Link] (3 responses)
Any real-world workload is a mix of the things we measure in a microbenchmark like this. The microbenchmark just breaks the workload down in to constituent pieces so that the pieces can be measured more easily.
Almost any Linux system does lots of opens and closes. On my system, one instance of 'top' can do thousands of them a second. Everyone should care about how fast these kinds of very common operations are, even if they can't measure the overhead when they get slower by a small amount.
Posted Jun 27, 2014 18:01 UTC (Fri)
by PaulMcKenney (✭ supporter ✭, #9624)
[Link] (2 responses)
In contrast, if you have a small tight benchmark, you might be able to sort the changes that improve performance from those that degrade performance. Of course, you should follow up by measuring the collection of changes that improved performance on a more realistic benchmark. After all, sometimes small changes interact in surprising ways.
Posted Jun 27, 2014 19:42 UTC (Fri)
by dlang (guest, #313)
[Link] (1 responses)
In this case, it's not that the individual opens and closes get slower, it's that when there are too many of them happening at once they end up getting slower.
so while a microbenchmark may show a 3% penalty, it's very possible that a real-world task that did 1/10 as many opens/closes (because it's doing real work in between) would not see a 0.3% penalty, but no measurable penalty
Posted Jun 27, 2014 19:54 UTC (Fri)
by PaulMcKenney (✭ supporter ✭, #9624)
[Link]
RCU, cond_resched(), and performance regressions
RCU, cond_resched(), and performance regressions
RCU, cond_resched(), and performance regressions
RCU, cond_resched(), and performance regressions
RCU, cond_resched(), and performance regressions