Improve scaling and hotplugging tolerance in blktrace and friends
cover Improve scaling and hotplugging tolerance in blktrace and friends
While looking for issues at 4096 cpus I noticed that blktrace was behaving oddly. Upon reviewing I discovered some parts of the code were written at at time when boxes were limited to 512 and holes in cpu maps were impossible.
This patch series should correct that.
Nathan Zimmer (5):
verify_blkparse: Change max_cpus to deal with systems larger the 512
btreplay: Machines are now large enough that holes need to be dealt
with
btreplay: use sysconf to get the number of configured cpus
blktrace: use number of configured cpus instead of online cpus blktrace blkreplay: convert to use a dynamic cpu_set_t
blktrace.c | 20 +++++++++++++------- btreplay/btreplay.c | 51 +++++++++++++++++++++++++++++++++++---------------- verify_blkparse.c | 23 +++++++++++++++++++---- 3 files changed, 67 insertions(+), 27 deletions(-)
Signature · 1 line
1.8.1.2
Quoted 5 lines · Nathan Zimmer
While looking for issues at 4096 cpus I noticed that blktrace was behaving oddly. Upon reviewing I discovered some parts of the code were written at at time when boxes were limited to 512 and holes in cpu maps were impossible.
This patch series should correct that.
Thanks Nathan. I reviewed all 5 and have applied them.
Signature · 1 line
Jens Axboe
Quoted 8 lines · Jens Axboe
Quoted 5 lines · Nathan Zimmer
While looking for issues at 4096 cpus I noticed that blktrace was behaving oddly. Upon reviewing I discovered some parts of the code were written at at time when boxes were limited to 512 and holes in cpu maps were impossible.
This patch series should correct that.
Thanks Nathan. I reviewed all 5 and have applied them.
Have you pushed the patches lately?
I checked the public branch git://git.kernel.dk/blktrace.git and I didn't see my changes.
Thanks,
Nate
Quoted 9 lines · Nathan Zimmer
Quoted 8 lines · Jens Axboe
Quoted 7 lines · Nathan Zimmer
While looking for issues at 4096 cpus I noticed that blktrace was behaving
oddly. Upon reviewing I discovered some parts of the code were written at at
time when boxes were limited to 512 and holes in cpu maps were impossible.
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
This patch series should correct that.
Thanks Nathan. I reviewed all 5 and have applied them.
Have you pushed the patches lately?
I checked the public branchgit://git.kernel.dk/blktrace.gitand I didn't see my changes.
I wonder if I applied and forgot to push them out. Unfortunately my workstation is in transit at the moment. But I can just re-apply here and get it pushed out, sorry about that.
Signature · 1 line
Jens Axboe
Quoted 14 lines · Jens Axboe
Quoted 13 lines · Nathan Zimmer
Quoted 11 lines · Jens Axboe
Quoted 8 lines · Nathan Zimmer
While looking for issues at 4096 cpus I noticed that blktrace was behaving
oddly. Upon reviewing I discovered some parts of the code were written at at
time when boxes were limited to 512 and holes in cpu maps were impossible.This patch series should correct that.
Thanks Nathan. I reviewed all 5 and have applied them.
Quoted 7 lines
Quoted 3 lines
Have you pushed the patches lately?
I checked the public branchgit://git.kernel.dk/blktrace.gitand I didn't see my changes.I wonder if I applied and forgot to push them out. Unfortunately my workstation is in transit at the moment. But I can just re-apply here and get it pushed out, sorry about that.
Doesn't work so well for me:
gcc -Wall -W -O2 -g -I. -I.. -I../btt -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITSd -UCOUNT_IOS -UDEBUG -DNDEBUG -c -o btreplay.o btreplay.cbtreplay.c: In function ‘pin_to_cpu’:
btreplay.c:554:2: error: request for member ‘__bits’ in something not a structure or union
CPU_SET_S(tip->cpu, size, &cpus);
This should do it:
- CPU_ZERO_S(ncpus, &cpus); - CPU_SET_S(tip->cpu, size, &cpus); + CPU_ZERO_S(ncpus, cpus); + CPU_SET_S(tip->cpu, size, cpus);
Signature · 1 line
Jens Axboe
Quoted 34 lines · Jens Axboe
Quoted 11 lines · Jens Axboe
Quoted 10 lines · Nathan Zimmer
Quoted 9 lines · Jens Axboe
Quoted 8 lines · Nathan Zimmer
While looking for issues at 4096 cpus I noticed that blktrace was behaving
oddly. Upon reviewing I discovered some parts of the code were written at at
time when boxes were limited to 512 and holes in cpu maps were impossible.This patch series should correct that.
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
Thanks Nathan. I reviewed all 5 and have applied them.
Have you pushed the patches lately?
I checked the public branchgit://git.kernel.dk/blktrace.gitand I didn't see my changes.I wonder if I applied and forgot to push them out. Unfortunately my workstation is in transit at the moment. But I can just re-apply here and get it pushed out, sorry about that.
Doesn't work so well for me:
gcc -Wall -W -O2 -g -I. -I.. -I../btt -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITSd -UCOUNT_IOS -UDEBUG -DNDEBUG -c -o btreplay.o
btreplay.cbtreplay.c: In function ‘pin_to_cpu’:
btreplay.c:554:2: error: request for member ‘__bits’ in something not a structure or unionCPU_SET_S(tip->cpu, size, &cpus);This should do it:
Review
Quoted 4 lines
(quoted diff) +2
-2- CPU_ZERO_S(ncpus, &cpus); - CPU_SET_S(tip->cpu, size, &cpus); + CPU_ZERO_S(ncpus, cpus); + CPU_SET_S(tip->cpu, size, cpus);
Yea that seems to. Thanks