Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Nov 2019 21:24:13 +0700
From:      Eugene Grosbein <eugen@grosbein.net>
To:        Konstantin Belousov <kostikbel@gmail.com>, Willem Jan Withagen <wjw@digiware.nl>
Cc:        FreeBSD Hackers <freebsd-hackers@freebsd.org>, Alexander Motin <mav@FreeBSD.org>, Andriy Gapon <avg@freebsd.org>
Subject:   Re: Process in T state does not want to die.....
Message-ID:  <61899086-0272-6d72-b250-b697efe8b4f5@grosbein.net>
In-Reply-To: <20191129114029.GX10580@kib.kiev.ua>
References:  <3c57e51d-fa36-39a3-9691-49698e8d2124@grosbein.net> <91490c30-45e9-3c38-c55b-12534fd09e28@digiware.nl> <20191128115122.GN10580@kib.kiev.ua> <296874db-40f0-c7c9-a573-410e4c86049a@digiware.nl> <20191128195013.GU10580@kib.kiev.ua> <1ae7ad65-902c-8e5f-bcf1-1e98448c64bb@digiware.nl> <20191128214633.GV10580@kib.kiev.ua> <a2daa66f-b073-8c20-3668-aceec25b4ba9@grosbein.net> <b7cf405a-ceaf-5d4c-214c-d7ad5c9557e7@grosbein.net> <c9b8b5e9-93dc-0535-bb2c-5860f2f231dd@digiware.nl> <20191129114029.GX10580@kib.kiev.ua>

next in thread | previous in thread | raw e-mail | index | archive | help

29.11.2019 18:40, Konstantin Belousov wrote:

>>  From what I get from Konstantin is that this problem is due to memory 
>> pressure build by both ZFS and the buffercache used by UFS.
>> And the buffercache is waiting for some buffer memory to be able to do 
>> its work.
>>
>> If wanted I can try and put a ZFS fs on /dev/ggate0 so that any 
>> buffering would be in ZFS and not in UFS.
>>
>> But even with the patch I still now have:
>> root 3471   0.0  5.8  646768 480276  - TsJ  11:16  0:10.74 ceph-osd -i 0
>> root 3530   0.0 11.8 1153860 985020  - TsJ  11:17  0:11.51 ceph-osd -i 1
>> root 3532   0.0  5.3  608760 438676  - TsJ  11:17  0:07.31 ceph-osd -i 2
>> root 3534   0.0  3.2  435564 266328  - IsJ  11:17  0:07.35 ceph-osd -i 3
>> root 3536   0.0  4.8  565792 398392  - IsJ  11:17  0:08.73 ceph-osd -i 5
>> root 3553   0.0  2.3  362892 192348  - TsJ  11:17  0:04.21 ceph-osd -i 6
>> root 3556   0.0  3.0  421516 246956  - TsJ  11:17  0:04.81 ceph-osd -i 4
>>
>> And from procstat -kk below it looks like things are still stuck in 
>> bwillwrite, but now with another set of functions. I guess not writing 
>> an extattrib() but writing a file.
> Yes, it should resolve after you end the load that starves the buffer
> cache' dirty space.  Or wait some time until the thread gets its portion
> of share, which is unfair and could take a long time.
> 
> I will commit the VN_OPEN_INVFS patch shortly.

My system is ZFS-only. OTOH, it has vfs.zfs.arc_max=160g out of 360G RAM
plus it runs several bhyve instances that leak host's memory significantly
upto overflowing swap space (64G):

Nov 25 06:55:01 col02 kernel: swap_pager_getswapspace(32): failed

Is patch relevant for me?

Before update from 11.2-STABLE, there were no leaks.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?61899086-0272-6d72-b250-b697efe8b4f5>