blktrace -k
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.
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
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
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