summaryrefslogtreecommitdiffstats
path: root/fs/afs
diff options
context:
space:
mode:
authorVivek Goyal <vgoyal@redhat.com>2011-01-19 16:25:02 +0100
committerJens Axboe <jaxboe@fusionio.com>2011-01-19 16:25:02 +0100
commitbe2c6b1990904dbd43f3d9b90fa2c530504375cd (patch)
treef2ec4322adc9f0607b5a78367bc66d8fa333cf54 /fs/afs
parentcfq: rename a function to give it more appropriate name (diff)
downloadlinux-be2c6b1990904dbd43f3d9b90fa2c530504375cd.tar.xz
linux-be2c6b1990904dbd43f3d9b90fa2c530504375cd.zip
blkio-throttle: Avoid calling blkiocg_lookup_group() for root group
o Jeff Moyer was doing some testing on a RAM backed disk and blkiocg_lookup_group() showed up high overhead after memcpy(). Similarly somebody else reported that blkiocg_lookup_group() is eating 6% extra cpu. Though looking at the code I can't think why the overhead of this function is so high. One thing is that it is called with very high frequency (once for every IO). o For lot of folks blkio controller will be compiled in but they might not have actually created cgroups. Hence optimize the case of root cgroup where we can avoid calling blkiocg_lookup_group() if IO is happening in root group (common case). Reported-by: Jeff Moyer <jmoyer@redhat.com> Signed-off-by: Vivek Goyal <vgoyal@redhat.com> Acked-by: Jeff Moyer <jmoyer@redhat.com> Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'fs/afs')
0 files changed, 0 insertions, 0 deletions