public inbox for bpf@vger.kernel.org
 help / color / mirror / Atom feed
* [issue]: sockmap restrain send if receiver block
@ 2024-06-17  2:01 郑国勇
  2024-06-17 17:07 ` John Fastabend
  0 siblings, 1 reply; 6+ messages in thread
From: 郑国勇 @ 2024-06-17  2:01 UTC (permalink / raw)
  To: john.fastabend, jakub, bpf

hi, In sockmap case, when sender send msg, In function sk_psock_queue_msg(), it will put the msg into the receiver psock ingress_msg queue, and wakeup receiver to receive.

sender can always send msg but not aware the receiver psock ingress_msg queue size.  In mortally case, when receiver not receive again due to the application bug, 

sender can contiunous send msg unti system memory not enough. If this happen, it will influence the whole system.

my question is:  is there a better solution for this case? just like tcp use sk_sendbuf to limit the sender to send agagin if receiver is block.

thanks very much.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-06-25 19:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-17  2:01 [issue]: sockmap restrain send if receiver block 郑国勇
2024-06-17 17:07 ` John Fastabend
2024-06-18  7:47   ` zhengguoyong
2024-06-18  8:08   ` zhengguoyong
2024-06-21  6:44     ` zhengguoyong
2024-06-25 19:51     ` John Fastabend

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox