Article 5S4XB sk_sndbuf and sock_wmalloc

sk_sndbuf and sock_wmalloc

by
senthil kumar nagappan
from LinuxQuestions.org on (#5S4XB)
can sk_buff allocated bytes sk->sk_wmem_alloc can be more than sk->sk_sndbuf for a socket.

In sock_wmalloc, allocating sock buf and incrementing sk_wmem_alloc, looks like it's not atomic? Or this there another global lock?

If the sock_wmalloc is reentrant, is it possible that sk_wmem_alloc can be more than the sk_sndbuf, correct?

So the sk_sndbuf is not a strict enforcement is it?
Please correct me if my understanding is wrong.latest?d=yIl2AUoC8zA latest?i=RFgqlE6T5_s:0-USsjxhKwQ:F7zBnMy latest?i=RFgqlE6T5_s:0-USsjxhKwQ:V_sGLiP latest?d=qj6IDK7rITs latest?i=RFgqlE6T5_s:0-USsjxhKwQ:gIN9vFw
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments