4 ms·
Does Linux have this as well?
by silverwind 2y ago
Does Linux have this as well?
- deaddodo 2y agoIt's built into the socket library, so most high performance web apps already manually enable TCP_NODELAY. This just allows you to force it OS-wide. Linux used to have something similar, called TCP low-latency mode, but the flag is no longer functional. Now, there are various distribution specific options or you can rebuild your kernel with multiple related build options to achieve the same.
- blueflow 2y agoWith "socket library" you mean libc?
- signa11 2y agoyes, there is [typically] nothing else. you can ofcourse do a syscall directly, but i am not sure what value add _that_ is, `man -S 2 syscall` for more information. edit: 'typically' because some languages / runtimes might go the syscall route.
- blueflow 2y agoThats why i ask. "the socket library" is an very odd way to refer to the libc.
- _flux 2y agoSome other Unix operating systems had the functions in a own socket library, e.g. SunOS: https://docs.oracle.com/cd/E19120-01/open.solaris/817-4415/sockets-85885/index.html https://docs.oracle.com/cd/E19120-01/open.solaris/817-4415/s... . I suppose though in the context of Linux it's a bit weird, but you did get the correct meaning :).
- DEADMINCE 2y agoNot in context.
- justincormack 2y agoWell, Go for example does syscalls directly.