From: Peng Yu <pengyu.ut@gmail.com>
To: linux-nfs@vger.kernel.org
Subject: Why killing processes that access NFS results in the output directory inaccessible?
Date: Thu, 14 Jul 2011 20:24:09 -0500 [thread overview]
Message-ID: <CABrM6wnF-zmobE75cMXstzu0Y-wWwRT-srKxWJeZeVDyv0EEWw@mail.gmail.com> (raw)
Hi All,
I have an NFS server using the Solaris package version
11.11,REV=2009.11.11, and an NFS client of version 1:1.2.0-4ubuntu4.1
(Ubuntu 10.04LTS).
I use the following Makefile to start (using the command 'make -j')
muliple gunzip processes to unzip the gz files (each gz file is of
several GBs, the decompressed files are about 2 times of the original
files).
I wait for make to run a while so that all the gunzip processes start.
White the process are running, I try to type ctrl-C to kill the make
processes, but it doesn't kill it. Then I use the command 'kill' to
kill make. However, the gnuzip processes are not killed automatically.
I have to use 'kill -9' to kill all gunzip processes. But the
directory txtfiles is not accessible anymore.
Has anybody seen a similar problem when kill processes accessing NFS?
Is there a way to fix this issue by tuning configurations of NFS
client or server?
$ cat Makefile
.PHONY: all
INFILES:=$(wildcard gzfiles/*.txt.gz)
OUTFILES:=$(patsubst gzfiles/%.txt.gz,txtfiles/%.txt,$(INFILES))
all: $(OUTFILES)
$(OUTFILES): txtfiles/%.txt: gzfiles/%.txt.gz
mkdir -p $(dir $@); gunzip -c $< > $@
clean:
$(RM) -rf txtfiles
$ ll gzfiles/*
-rw------- 1 nobody nogroup 5853805021 2011-07-13 20:43
gzfiles/28121s_1_export.txt.gz
-rw------- 1 nobody nogroup 4153603765 2011-07-13 20:23
gzfiles/28121s_1_sequence.txt.gz
-rw------- 1 nobody nogroup 3296029841 2011-07-13 20:30
gzfiles/28121s_1_sorted.txt.gz
-rw------- 1 nobody nogroup 5002426991 2011-07-13 20:19
gzfiles/28122s_2_export.txt.gz
-rw------- 1 nobody nogroup 3680452360 2011-07-13 20:35
gzfiles/28122s_2_sequence.txt.gz
-rw------- 1 nobody nogroup 2915028714 2011-07-13 20:46
gzfiles/28122s_2_sorted.txt.gz
-rw------- 1 nobody nogroup 4723638261 2011-07-13 20:47
gzfiles/28123s_3_export.txt.gz
-rw------- 1 nobody nogroup 3562493399 2011-07-13 20:26
gzfiles/28123s_3_sequence.txt.gz
-rw------- 1 nobody nogroup 2824516625 2011-07-13 20:17
gzfiles/28123s_3_sorted.txt.gz
-rw------- 1 nobody nogroup 5642735164 2011-07-13 20:50
gzfiles/28124s_4_export.txt.gz
-rw------- 1 nobody nogroup 4072595214 2011-07-13 20:44
gzfiles/28124s_4_sequence.txt.gz
-rw------- 1 nobody nogroup 3239995460 2011-07-13 20:22
gzfiles/28124s_4_sorted.txt.gz
-rw------- 1 nobody nogroup 4795738475 2011-07-13 20:20
gzfiles/28125s_5_export.txt.gz
-rw------- 1 nobody nogroup 3595104934 2011-07-13 20:32
gzfiles/28125s_5_sequence.txt.gz
-rw------- 1 nobody nogroup 2900122747 2011-07-13 20:51
gzfiles/28125s_5_sorted.txt.gz
-rw------- 1 nobody nogroup 4157690024 2011-07-13 20:41
gzfiles/28126s_6_export.txt.gz
-rw------- 1 nobody nogroup 3187369090 2011-07-13 20:38
gzfiles/28126s_6_sequence.txt.gz
-rw------- 1 nobody nogroup 2426049205 2011-07-13 20:27
gzfiles/28126s_6_sorted.txt.gz
-rw------- 1 nobody nogroup 3857633332 2011-07-13 20:29
gzfiles/28182s_7_export.txt.gz
-rw------- 1 nobody nogroup 3005082989 2011-07-13 20:25
gzfiles/28182s_7_sequence.txt.gz
-rw------- 1 nobody nogroup 2225189693 2011-07-13 20:39
gzfiles/28182s_7_sorted.txt.gz
-rw------- 1 nobody nogroup 3942981571 2011-07-13 20:33
gzfiles/28183s_8_export.txt.gz
-rw------- 1 nobody nogroup 3053659952 2011-07-13 20:37
gzfiles/28183s_8_sequence.txt.gz
-rw------- 1 nobody nogroup 2350022326 2011-07-13 20:36
gzfiles/28183s_8_sorted.txt.gz
--
Regards,
Peng
reply other threads:[~2011-07-15 1:24 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CABrM6wnF-zmobE75cMXstzu0Y-wWwRT-srKxWJeZeVDyv0EEWw@mail.gmail.com \
--to=pengyu.ut@gmail.com \
--cc=linux-nfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).