Skip to contentSkip to conversation

blktrace -k

DISCUSSION M. Mohan Kumar 2 participants 4 messages Sep 16, 2009

lore
Share & tools
lore
#0 lore raw

Hi,

I observed that when we issue the command blktrace -d /dev/sda -k, which stops on going trace. But the process which initiated tracing still runs. Is it the expected behavior? Should not the process also be killed when blktrace -k option is used?

Regards,
M. Mohan Kumar.

#1 lore raw
Quoted 9 lines · M. Mohan Kumar

Hi,

I observed that when we issue the command blktrace -d /dev/sda -k, which stops on going trace. But the process which initiated tracing still runs. Is it the expected behavior? Should not the process also be killed when blktrace -k option is used?

Regards,
M. Mohan Kumar.

No, the -k option just cleans up the kernel state (typically from a previously aborted blktrace run that failed to clean up the state). It doesn't do anything with user-level processes running blktrace.

Alan

#2 lore raw
In reply to M. Mohan Kumar
Quoted 11 lines · M. Mohan Kumar
Quoted 5 lines

No, the -k option just cleans up the kernel state (typically from a previously aborted blktrace run that failed to clean up the state). It doesn't do anything with user-level processes running blktrace.

Does it mean that one has to explicitly kill the existing blktrace process by Ctrl+C or kill?

Regards,
M. Mohan Kumar

Yes - the point of '-k' is to clean up after some blktrace process has failed unexpectedly and left the kernel in an unclean state. [Although I think that the kernel has been cleaned up enough in this area where it may not be necessary anymore...]

Alan

#3 lore raw
In reply to M. Mohan Kumar
Quoted 5 lines

No, the -k option just cleans up the kernel state (typically from a previously aborted blktrace run that failed to clean up the state). It doesn't do anything with user-level processes running blktrace.

Does it mean that one has to explicitly kill the existing blktrace process by Ctrl+C or kill?

Regards,
M. Mohan Kumar