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 <bu7c...@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
>
_______________________________________________
freebsd-net@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"

Reply via email to