Bug 763847 (GLUSTER-2115) - fd leak in nfs when dd is used
Summary: fd leak in nfs when dd is used
Keywords:
Status: CLOSED WORKSFORME
Alias: GLUSTER-2115
Product: GlusterFS
Classification: Community
Component: nfs
Version: 3.1.0
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Shehjar Tikoo
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-11-16 12:17 UTC by Krishna Srinivas
Modified: 2015-12-01 16:45 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Regression: RTP
Mount Type: nfs
Documentation: DNR
CRM:
Verified Versions:


Attachments (Terms of Use)

Description Krishna Srinivas 2010-11-16 12:17:00 UTC
13036 is the glusterd

[root@brick1 vm1]# ls -l /proc/13036/fd
total 0
lrwx------ 1 root root 64 Nov 16 04:14 0 -> /dev/null
lrwx------ 1 root root 64 Nov 16 04:14 1 -> /dev/null
lrwx------ 1 root root 64 Nov 16 04:14 2 -> /dev/null
lrwx------ 1 root root 64 Nov 16 04:14 3 -> anon_inode:[eventpoll]
l-wx------ 1 root root 64 Nov 16 04:14 4 -> /usr/local/var/log/glusterfs/bricks/export-export.log
lrwx------ 1 root root 64 Nov 16 04:14 5 -> /etc/glusterd/vols/test/run/brick1-export-export.pid
lrwx------ 1 root root 64 Nov 16 04:14 6 -> socket:[3618165]
lrwx------ 1 root root 64 Nov 16 04:14 7 -> socket:[3618184]
lrwx------ 1 root root 64 Nov 16 04:14 8 -> /tmp/tmpfFg5P3U (deleted)
lrwx------ 1 root root 64 Nov 16 04:14 9 -> socket:[3618176]

create a file using dd:

[root@brick1 vm1]# dd if=/dev/zero of=test bs=1M count=10
10+0 records in
10+0 records out
10485760 bytes (10 MB) copied, 0.107314 seconds, 97.7 MB/s

now you can see that there are 2 fds for test:

[root@brick1 vm1]# ls -l /proc/13036/fd
total 0
lrwx------ 1 root root 64 Nov 16 04:14 0 -> /dev/null
lrwx------ 1 root root 64 Nov 16 04:14 1 -> /dev/null
lrwx------ 1 root root 64 Nov 16 04:14 10 -> /export/export/vm1/test
lrwx------ 1 root root 64 Nov 16 04:14 11 -> /export/export/vm1/test
lrwx------ 1 root root 64 Nov 16 04:14 2 -> /dev/null
lrwx------ 1 root root 64 Nov 16 04:14 3 -> anon_inode:[eventpoll]
l-wx------ 1 root root 64 Nov 16 04:14 4 -> /usr/local/var/log/glusterfs/bricks/export-export.log
lrwx------ 1 root root 64 Nov 16 04:14 5 -> /etc/glusterd/vols/test/run/brick1-export-export.pid
lrwx------ 1 root root 64 Nov 16 04:14 6 -> socket:[3618165]
lrwx------ 1 root root 64 Nov 16 04:14 7 -> socket:[3618184]
lrwx------ 1 root root 64 Nov 16 04:14 8 -> /tmp/tmpfFg5P3U (deleted)
lrwx------ 1 root root 64 Nov 16 04:14 9 -> socket:[3618176]

remove test file:

[root@brick1 vm1]# rm -f test

you can see the following line :lrwx------ 1 root root 64 Nov 16 04:14 10 -> /export/export/vm1/test (deleted)

[root@brick1 vm1]# ls -l /proc/13036/fd
total 0
lrwx------ 1 root root 64 Nov 16 04:14 0 -> /dev/null
lrwx------ 1 root root 64 Nov 16 04:14 1 -> /dev/null
lrwx------ 1 root root 64 Nov 16 04:14 10 -> /export/export/vm1/test (deleted)
lrwx------ 1 root root 64 Nov 16 04:14 2 -> /dev/null
lrwx------ 1 root root 64 Nov 16 04:14 3 -> anon_inode:[eventpoll]
l-wx------ 1 root root 64 Nov 16 04:14 4 -> /usr/local/var/log/glusterfs/bricks/export-export.log
lrwx------ 1 root root 64 Nov 16 04:14 5 -> /etc/glusterd/vols/test/run/brick1-export-export.pid
lrwx------ 1 root root 64 Nov 16 04:14 6 -> socket:[3618165]
lrwx------ 1 root root 64 Nov 16 04:14 7 -> socket:[3618184]
lrwx------ 1 root root 64 Nov 16 04:14 8 -> /tmp/tmpfFg5P3U (deleted)
lrwx------ 1 root root 64 Nov 16 04:14 9 -> socket:[3618176]
[root@brick1 vm1]#

Comment 1 Shehjar Tikoo 2010-12-23 05:25:54 UTC
Doc pending but I am not yet sure whats going on. Please ignore documenting this for now.

Comment 2 Shehjar Tikoo 2011-02-22 03:42:25 UTC
Not seen on latest git. Closing. Krish, please re-open if the problem surfaces in your test. Thanks.


Note You need to log in before you can comment on or make changes to this bug.