Deadlock, exclusive sx so_rcv_sx, amd64

Kris Kennaway kris at FreeBSD.org
Mon Oct 29 03:37:29 PDT 2007


Gleb Kozyrev wrote:
> On 26/10/2007, Gleb Kozyrev <gkozyrev at gmail.com> wrote:
>> I managed to find a kernel message that precedes the freeze:
>> Approaching the limit on PV entries, consider increasing sysctl
>> vm.pmap.shpgperproc or vm.pmap.pv_entry_max
>>
>> rtorrent likes to mmap large files.
>> After increasing (one of) these sysctls everything seems ok.
>> Probably, setting rtorrent's memory limit could have helped either.
>>
>> Is there a way to know if some process is becoming close to that limit?
> 
> It now just takes longer until freeze with shpgperproc = 5000 (originally 200).
> 

So how about vm.pmap.pv_entry_max?  Have you obtained the usual 
debugging information (DDB backtraces, etc) when the system freezes?

Kris


More information about the freebsd-current mailing list