From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michal Hocko Subject: Re: ps stuck on cmdline reading Date: Thu, 5 Feb 2015 16:45:58 +0100 Message-ID: <20150205154558.GF19104@dhcp22.suse.cz> References: <20150121095808.GA18656@gandi.net> <20150203194036.GA2490@dhcp22.suse.cz> <20150205152233.GI3008@gandi.net> Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: <20150205152233.GI3008-M8Sm6a3kpgNeoWH0uzbU5w@public.gmane.org> Sender: cgroups-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: William Dauchy Cc: cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org On Thu 05-02-15 16:22:33, William Dauchy wrote: > On Feb03 20:40, Michal Hocko wrote: > > What does /proc//stack say? > > Thanks for the hint. > forgot to have a look; seems to be a nfs issue: > > [] sleep_on_page+0x9/0x20 > [] __lock_page+0xa4/0xb0 > [] truncate_inode_pages_range+0x3ef/0x6a0 > [] truncate_inode_pages+0x10/0x20 > [] nfs4_evict_inode+0x16/0x40 > [] evict+0xaf/0x1c0 > [] iput+0x102/0x1a0 > [] nfs_dentry_iput+0x35/0x50 OK, so the memcg reclaim gets down to nfs and it wants to evict its inode and that is waiting for the page to get unlocked. It would be interesting to find out who is keeping the page locked. What is the nfsd doing? > [] dentry_kill+0x16c/0x290 > [] dput+0xa8/0x160 > [] __put_nfs_open_context+0xbb/0x100 > [] put_nfs_open_context+0xb/0x20 > [] nfs_commitdata_release+0x14/0x30 > [] nfs_commit_release+0x27/0x30 > [] rpc_free_task+0x32/0x80 > [] rpc_final_put_task+0x85/0x90 > [] rpc_do_put_task+0x35/0x40 > [] rpc_put_task+0xb/0x20 > [] nfs_initiate_commit+0xe0/0x120 > [] nfs_commit_list+0x69/0xb0 > [] nfs_commit_inode+0x9b/0x160 > [] nfs_release_page+0x7b/0xa0 > [] try_to_release_page+0x3d/0x60 > [] shrink_page_list+0x8a6/0x9e0 > [] shrink_inactive_list+0x183/0x420 > [] shrink_lruvec+0x335/0x6f0 > [] shrink_zone+0x66/0x1a0 > [] do_try_to_free_pages+0xdb/0x550 > [] try_to_free_mem_cgroup_pages+0xa4/0xb0 > [] mem_cgroup_reclaim+0x4e/0xd0 > [] __mem_cgroup_try_charge+0x409/0xbf0 > [] mem_cgroup_charge_common+0x45/0xa0 > [] mem_cgroup_newpage_charge+0x26/0x30 > [] handle_mm_fault+0x8c8/0xcf0 > [] __do_page_fault+0x1b3/0x600 > [] do_page_fault+0xc/0x20 > [] page_fault+0x22/0x30 > [] 0xffffffffffffffff > -- > William -- Michal Hocko SUSE Labs