Why can't I interrupt IO operations on linux?
I tried to abort mkfs.ntfs applied on USB drive (forgot the Quck format flag) and then another big disk IO operation (using dd). They both took more than several minutes to abort, so I just rebooted, because it was much faster to do than to convince the OS I really want to cancel and don't care about the media state.
Why is it the case on Linux, why does kill -9 doesn't abort the operation instantaneously or rather fast enough for a human being (something around a pair of seconds at most)?
A pair of seconds is nearly an eternity for a computer to stop a DMA, why does it take so long and do you know if I can tweak some setting to make it faster?
linux io
migrated from serverfault.com 3 hours ago
This question came from our site for system and network administrators.
add a comment |
I tried to abort mkfs.ntfs applied on USB drive (forgot the Quck format flag) and then another big disk IO operation (using dd). They both took more than several minutes to abort, so I just rebooted, because it was much faster to do than to convince the OS I really want to cancel and don't care about the media state.
Why is it the case on Linux, why does kill -9 doesn't abort the operation instantaneously or rather fast enough for a human being (something around a pair of seconds at most)?
A pair of seconds is nearly an eternity for a computer to stop a DMA, why does it take so long and do you know if I can tweak some setting to make it faster?
linux io
migrated from serverfault.com 3 hours ago
This question came from our site for system and network administrators.
please include kernel versions in kernel questions
– sourcejedi
2 hours ago
lwn.net/Articles/288056 is some relevant background. see also github.com/torvalds/linux/commit/499d05ecf990 . did you trykill -9
? maybe TASK_KILLABLE only reacts to SIGKILL, i am not sure.
– sourcejedi
2 hours ago
@sourcejedi I think the result has been in the question. They didn't terminate quickly.
– 炸鱼薯条德里克
42 mins ago
add a comment |
I tried to abort mkfs.ntfs applied on USB drive (forgot the Quck format flag) and then another big disk IO operation (using dd). They both took more than several minutes to abort, so I just rebooted, because it was much faster to do than to convince the OS I really want to cancel and don't care about the media state.
Why is it the case on Linux, why does kill -9 doesn't abort the operation instantaneously or rather fast enough for a human being (something around a pair of seconds at most)?
A pair of seconds is nearly an eternity for a computer to stop a DMA, why does it take so long and do you know if I can tweak some setting to make it faster?
linux io
I tried to abort mkfs.ntfs applied on USB drive (forgot the Quck format flag) and then another big disk IO operation (using dd). They both took more than several minutes to abort, so I just rebooted, because it was much faster to do than to convince the OS I really want to cancel and don't care about the media state.
Why is it the case on Linux, why does kill -9 doesn't abort the operation instantaneously or rather fast enough for a human being (something around a pair of seconds at most)?
A pair of seconds is nearly an eternity for a computer to stop a DMA, why does it take so long and do you know if I can tweak some setting to make it faster?
linux io
linux io
asked 4 hours ago
nulleightnulleight
162
162
migrated from serverfault.com 3 hours ago
This question came from our site for system and network administrators.
migrated from serverfault.com 3 hours ago
This question came from our site for system and network administrators.
please include kernel versions in kernel questions
– sourcejedi
2 hours ago
lwn.net/Articles/288056 is some relevant background. see also github.com/torvalds/linux/commit/499d05ecf990 . did you trykill -9
? maybe TASK_KILLABLE only reacts to SIGKILL, i am not sure.
– sourcejedi
2 hours ago
@sourcejedi I think the result has been in the question. They didn't terminate quickly.
– 炸鱼薯条德里克
42 mins ago
add a comment |
please include kernel versions in kernel questions
– sourcejedi
2 hours ago
lwn.net/Articles/288056 is some relevant background. see also github.com/torvalds/linux/commit/499d05ecf990 . did you trykill -9
? maybe TASK_KILLABLE only reacts to SIGKILL, i am not sure.
– sourcejedi
2 hours ago
@sourcejedi I think the result has been in the question. They didn't terminate quickly.
– 炸鱼薯条德里克
42 mins ago
please include kernel versions in kernel questions
– sourcejedi
2 hours ago
please include kernel versions in kernel questions
– sourcejedi
2 hours ago
lwn.net/Articles/288056 is some relevant background. see also github.com/torvalds/linux/commit/499d05ecf990 . did you try
kill -9
? maybe TASK_KILLABLE only reacts to SIGKILL, i am not sure.– sourcejedi
2 hours ago
lwn.net/Articles/288056 is some relevant background. see also github.com/torvalds/linux/commit/499d05ecf990 . did you try
kill -9
? maybe TASK_KILLABLE only reacts to SIGKILL, i am not sure.– sourcejedi
2 hours ago
@sourcejedi I think the result has been in the question. They didn't terminate quickly.
– 炸鱼薯条德里克
42 mins ago
@sourcejedi I think the result has been in the question. They didn't terminate quickly.
– 炸鱼薯条德里克
42 mins ago
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f505760%2fwhy-cant-i-interrupt-io-operations-on-linux%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f505760%2fwhy-cant-i-interrupt-io-operations-on-linux%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
please include kernel versions in kernel questions
– sourcejedi
2 hours ago
lwn.net/Articles/288056 is some relevant background. see also github.com/torvalds/linux/commit/499d05ecf990 . did you try
kill -9
? maybe TASK_KILLABLE only reacts to SIGKILL, i am not sure.– sourcejedi
2 hours ago
@sourcejedi I think the result has been in the question. They didn't terminate quickly.
– 炸鱼薯条德里克
42 mins ago