sk_rcvbuff 的设定

sk->rcvbuf          :当前sock 的读写buf的最大限制(这个值是可以变化的)

sk->rmem_alloc :当前sock占据的内存(这个值随着出入队skbuff的出入而变化)

sk_forward_alloc:这个值表示一个预分配值,也就是整个tcp协议栈的内存cache,第一次为一个缓冲区分配 buf的时候,我们不会直接分配精确的大小,而是按页来分配,而分配的大小就是这个值。

 

[08:32:58][   62.907638] [tcp_fixup_rcvbuf 416] .
[08:32:58][   62.947290] [<c085dca8>] (tcp_init_buffer_space) from [<c0862e28>] (tcp_rcv_state_process+0xc1c/0xe04)
[08:32:58][   62.956711] [<c0862e28>] (tcp_rcv_state_process) from [<c086dee0>] (tcp_child_process+0x148/0x194)
[08:32:58][   62.965785] [<c086dee0>] (tcp_child_process) from [<c086cb70>] (tcp_v4_rcv+0x464/0xbf4)
[08:32:58][   62.973901] [<c086cb70>] (tcp_v4_rcv) from [<c0846c84>] (ip_local_deliver_finish+0xdc/0x328)
[08:32:58][   62.982449] [<c0846c84>] (ip_local_deliver_finish) from [<c08474fc>] (ip_local_deliver+0xf0/0xf8)
[08:32:58][   62.991430] [<c08474fc>] (ip_local_deliver) from [<c084794c>] (ip_rcv+0x448/0x588)
[08:32:58][   62.999107] [<c084794c>] (ip_rcv) from [<c07fc138>] (__netif_receive_skb_core+0x2c4/0x8f8)
[08:32:58][   63.007483] [<c07fc138>] (__netif_receive_skb_core) from [<c07fe86c>] (netif_receive_skb_internal+0x44/0xc4)
[08:32:58][   63.017426] [<c07fe86c>] (netif_receive_skb_internal) from [<c07ff4c8>] (napi_gro_receive+0x84/0x9c)
[08:32:58][   63.026671] [<c07ff4c8>] (napi_gro_receive) from [<c0692080>] (bcmgenet_rx_poll+0x1f8/0x510)
[08:32:58][   63.035218] [<c0692080>] (bcmgenet_rx_poll) from [<c07fef58>] (net_rx_action+0x21c/0x314)
[08:32:58][   63.043506] [<c07fef58>] (net_rx_action) from [<c0224010>] (__do_softirq+0xe8/0x24c)
[08:32:58][   63.051357] [<c0224010>] (__do_softirq) from [<c0224494>] (irq_exit+0xec/0x154)
[08:32:58][   63.058774] [<c0224494>] (irq_exit) from [<c0267864>] (__handle_domain_irq+0x60/0xb4)
[08:32:58][   63.066711] [<c0267864>] (__handle_domain_irq) from [<c020148c>] (gic_handle_irq+0x48/0x8c)
[08:32:58][   63.075165] [<c020148c>] (gic_handle_irq) from [<c020c6b8>] (__irq_svc+0x58/0x74)


tcp_queue_rcv 增加sk_rmem_alloc

[   21.488545] [<c085cd4c>] (tcp_queue_rcv) from [<c0860dc0>] (tcp_data_queue+0x1f4/0xe48)
[   21.496655] [<c0860dc0>] (tcp_data_queue) from [<c0861bd8>] (tcp_rcv_established+0x1c4/0x758)
[   21.505291] [<c0861bd8>] (tcp_rcv_established) from [<c086b03c>] (tcp_v4_do_rcv+0x144/0x1a4)
[   21.513842] [<c086b03c>] (tcp_v4_do_rcv) from [<c086d358>] (tcp_v4_rcv+0xac0/0xbf4)
[   21.521609] [<c086d358>] (tcp_v4_rcv) from [<c0846d14>] (ip_local_deliver_finish+0xdc/0x328)
[   21.530157] [<c0846d14>] (ip_local_deliver_finish) from [<c084758c>] (ip_local_deliver+0xf0/0xf8)
[   21.539138] [<c084758c>] (ip_local_deliver) from [<c08479dc>] (ip_rcv+0x448/0x588)
[   21.546815] [<c08479dc>] (ip_rcv) from [<c07fc1a8>] (__netif_receive_skb_core+0x2c4/0x8f8)
[   21.555192] [<c07fc1a8>] (__netif_receive_skb_core) from [<c07fe8dc>] (netif_receive_skb_internal+0x44/0xc4)
[   21.565136] [<c07fe8dc>] (netif_receive_skb_internal) from [<c07ff538>] (napi_gro_receive+0x84/0x9c)
[   21.574381] [<c07ff538>] (napi_gro_receive) from [<c0692080>] (bcmgenet_rx_poll+0x1f8/0x510)
[   21.582929] [<c0692080>] (bcmgenet_rx_poll) from [<c07fefc8>] (net_rx_action+0x21c/0x314)
[   21.591218] [<c07fefc8>] (net_rx_action) from [<c0224010>] (__do_softirq+0xe8/0x24c)
[   21.599068] [<c0224010>] (__do_softirq) from [<c02241ac>] (run_ksoftirqd+0x38/0x50)
[   21.606831] [<c02241ac>] (run_ksoftirqd) from [<c023f1c0>] (smpboot_thread_fn+0x130/0x1c4)
[   21.615205] [<c023f1c0>] (smpboot_thread_fn) from [<c023b834>] (kthread+0x108/0x120)
[   21.623056] [<c023b834>] (kthread) from [<c0208628>] (ret_from_fork+0x14/0x2c)

 

[14:43:48][   16.161184] [tcp_queue_rcv 4604] .
[14:43:48][   16.200044] [<c085cd4c>] (tcp_queue_rcv) from [<c0860dc0>] (tcp_data_queue+0x1f4/0xe48)
[14:43:48][   16.208154] [<c0860dc0>] (tcp_data_queue) from [<c0861bd8>] (tcp_rcv_established+0x1c4/0x758)
[14:43:48][   16.216791] [<c0861bd8>] (tcp_rcv_established) from [<c086b03c>] (tcp_v4_do_rcv+0x144/0x1a4)
[14:43:48][   16.225339] [<c086b03c>] (tcp_v4_do_rcv) from [<c0855138>] (tcp_prequeue_process+0x9c/0xc4)
[14:43:48][   16.233794] [<c0855138>] (tcp_prequeue_process) from [<c0857444>] (tcp_recvmsg+0x73c/0xac0)
[14:43:48][   16.242253] [<c0857444>] (tcp_recvmsg) from [<c08804ac>] (inet_recvmsg+0xa4/0xcc)
[14:43:48][   16.249846] [<c08804ac>] (inet_recvmsg) from [<c07e6110>] (SyS_recvfrom+0xb0/0x128)
[14:43:48][   16.257612] [<c07e6110>] (SyS_recvfrom) from [<c07e61a0>] (SyS_recv+0x18/0x20)
[14:43:48][   16.264942] [<c07e61a0>] (SyS_recv) from [<c0208580>] (ret_fast_syscall+0x0/0x34)

 

[14:44:00][   27.950049] [<c07e79ec>] (sock_rfree) from [<c07eb8fc>] (skb_release_head_state+0x84/0x128)
[14:44:00][   27.958424] [<c07eb8fc>] (skb_release_head_state) from [<c07ebb20>] (skb_release_all+0xc/0x24)
[14:44:00][   27.967059] [<c07ebb20>] (skb_release_all) from [<c07ebb44>] (__kfree_skb+0xc/0x18)
[14:44:00][   27.974740] [<c07ebb44>] (__kfree_skb) from [<c0856fd8>] (tcp_recvmsg+0x2d0/0xac0)
[14:44:00][   27.982335] [<c0856fd8>] (tcp_recvmsg) from [<c08804ac>] (inet_recvmsg+0xa4/0xcc)
[14:44:00][   27.989844] [<c08804ac>] (inet_recvmsg) from [<c07e6110>] (SyS_recvfrom+0xb0/0x128)
[14:44:00][   27.997525] [<c07e6110>] (SyS_recvfrom) from [<c07e61a0>] (SyS_recv+0x18/0x20)
[14:44:00][   28.004771] [<c07e61a0>] (SyS_recv) from [<c0208580>] (ret_fast_syscall+0x0/0x34)

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值