0

As we know, we can use setsocketopt api to alter the socket's buffer size.

Since the socket fd is created by user process, does it occupy process memory address, like the top 1G kernal space in each process 4G virtual address for 32-bit machine?

And when socket is closed, it seems that the fd is not released until 2MSL time elapsed, which will cause the buffer to exist for longer time.

To clarify, my question is: Is the socket buffer mapped to the user virtual address space of the process?

2
  • I'm not sure I understand what your asking. Is your question Is the socket buffer mapped to the user virtual address space of the process? If so, then no. Aug 23, 2021 at 1:45
  • @AndyDalton That's it. Because afaik, each processes' address space contains 1G kernel space. So I was wondering if the socket buffer is mapped to that kernel space of each process.
    – scottxiao
    Aug 23, 2021 at 4:52

0

You must log in to answer this question.

Browse other questions tagged .