Date: Thu, 22 Feb 2018 23:12:00 +0400 From: Misak Khachatryan <kmisak@gmail.com> To: "Andrey V. Elsukov" <bu7cher@yandex.ru> Cc: freebsd-net@freebsd.org, Eugene Grosbein <eugen@grosbein.net> Subject: Re: Racoon and setkey problems Message-ID: <CABfKv0ki8CKbOd3n3RmBB2AwxO4H_wxo8RNF-LazMb9b5hKu-w@mail.gmail.com> In-Reply-To: <300530ba-f2b2-f31c-881e-4841c9c8ec12@yandex.ru> References: <CABfKv0mYX2ouQ1k6M2Bd90yp=eQXP6HcHL7%2BdE2AZQ9afQ%2Bc2g@mail.gmail.com> <5A8A97EC.4040103@grosbein.net> <CABfKv0ntGt6TCP7v9xa=MSSZqHwYbZtYtVd6s0gZ-Mbdu2qk5A@mail.gmail.com> <16e6d695-6961-bc17-6ff0-e2affcd5df3b@yandex.ru> <CABfKv0kvTLJjv7F6y7DTXxE-oXspOHTJti%2Bj0Ftqv5xVpqQQRQ@mail.gmail.com> <5A8BB836.2010501@grosbein.net> <5e13deb9-0d83-5f43-195c-f6797ed36a7b@yandex.ru> <CABfKv0mavVUqFsecAAa6-6RjzfBQ9qoGp7sUw8EEyXEkVQ5Onw@mail.gmail.com> <5A8E7642.2020509@grosbein.net> <CABfKv0=wV0_W2eWRkgcWKwwUxiNigR7NKXCdRyCSwVXhGrQKZw@mail.gmail.com> <ddf4d736-d071-4ddb-2237-001cdac8992f@yandex.ru> <CABfKv0kX70wV3isxxADq3xoNN5P-Y2_tN3iuyXvYzH0dntgo1A@mail.gmail.com> <CABfKv0ms1Aw_g4DHWGskxMmi7tHczeEQBMBch6MphG7NcSa3Cg@mail.gmail.com> <182ad344-6d2d-418f-02c6-1ba11dd3c2cd@yandex.ru> <CABfKv0=n9TnezVZSbTLyYV%2Bndk4mPJrgo%2BHvsFno=wMazrf7fg@mail.gmail.com> <9db09caa-010f-facb-778b-4a1a82cbb0b7@yandex.ru> <CABfKv0kbqYCPXk%2B2xxX2tOx%2BhaB3NQTur6Lrrm3rTOANz5W=WQ@mail.gmail.com> <300530ba-f2b2-f31c-881e-4841c9c8ec12@yandex.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
Here is changed output: # sysctl net.raw net.raw.recvspace: 8192 net.raw.sendspace: 8192 # sysctl net.raw.recvspace=65535 net.raw.recvspace: 8192 -> 65535 # sysctl net.raw.sendspace=65535 net.raw.sendspace: 8192 -> 65535 # # # # setkey -x setkey: send: No buffer space available # dtrace -s /tmp/key.d dtrace: script '/tmp/key.d' matched 14 probes CPU ID FUNCTION:NAME 3 25400 soreserve:entry 32768 65536 kernel`sonewconn+0x1b1 kernel`syncache_expand+0x6e1 kernel`tcp_input+0xdc4 5 25400 soreserve:entry 65535 65535 kernel`raw_attach+0x2a kernel`key_attach+0x57 kernel`socreate+0x1af 5 7957 key_attach:return 0 5 6405 sbappendaddr_locked_internal:return 1 kernel`sbappendaddr_locked+0x90 kernel`sbappendaddr+0x61 kernel`key_sendup0+0xee 5 24460 sbappendaddr_locked:return 1 kernel`sbappendaddr+0x61 kernel`key_sendup0+0xee kernel`key_sendup_mbuf+0x14b 5 12872 sbappendaddr:return 1 kernel`key_sendup0+0xee kernel`key_sendup_mbuf+0x14b kernel`key_parse+0x87f 5 7969 key_sendup0:return 0 kernel`key_sendup_mbuf+0x14b kernel`key_parse+0x87f kernel`sosend_generic+0x476 5 24460 sbappendaddr_locked:return 0 kernel`sbappendaddr+0x61 kernel`key_sendup0+0xee kernel`key_sendup_mbuf+0x1e6 5 12872 sbappendaddr:return 0 kernel`key_sendup0+0xee kernel`key_sendup_mbuf+0x1e6 kernel`key_parse+0x87f 5 7969 key_sendup0:return 55 kernel`key_sendup_mbuf+0x1e6 kernel`key_parse+0x87f kernel`sosend_generic+0x476 5 24402 key_sendup_mbuf:return 55 kernel`key_parse+0x87f kernel`sosend_generic+0x476 kernel`kern_sendit+0x245 5 11197 key_parse:return 55 ^C # Best regards, Misak Khachatryan On Thu, Feb 22, 2018 at 8:34 PM, Andrey V. Elsukov <bu7cher@yandex.ru> wrote: > On 22.02.2018 18:28, Misak Khachatryan wrote: >> # dtrace -s key.d >> dtrace: script 'key.d' matched 14 probes >> CPU ID FUNCTION:NAME > > So, what I can say: > >> 4 25400 soreserve:entry 8192 8192 >> kernel`raw_attach+0x2a >> kernel`key_attach+0x57 >> kernel`socreate+0x1af > > First of try to increase both values of net.raw: > > # sysctl net.raw > net.raw.recvspace: 65535 > net.raw.sendspace: 65535 > >> >> 4 24460 sbappendaddr_locked:return 0 >> kernel`sbappendaddr+0x61 >> kernel`key_sendup0+0xee >> kernel`key_sendup_mbuf+0x1e6 >> >> 4 12872 sbappendaddr:return 0 >> kernel`key_sendup0+0xee >> kernel`key_sendup_mbuf+0x1e6 >> kernel`key_parse+0x87f >> > > Then probably this output will be changed. > > -- > WBR, Andrey V. Elsukov >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABfKv0ki8CKbOd3n3RmBB2AwxO4H_wxo8RNF-LazMb9b5hKu-w>