Re: Sockets: synchronous I/O

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Would be really great if someone could give me a hint (or maybe even a little code example? ;)

The best hint I can give is not to do such things in kernel in the
first place.

Yes, In general it's true that these kind of things shouldn't be done in the kernel. But, one might want to do this to get better performance or just for experimenting. If Ingo thought this way, we wouldn't have had TUX.


Tux was a nice experiment, until somebody showed that you can get the
same performance from userspace by using sendfile(). The performance
argument no longer holds.

Agreed, but I believe there are still some gray areas. For example, using multiple streams for transfering a file. Yes, this can be done in the user mode, probably as effectively, but doing it in the kernel is still an interesting thing to do. Another scenario is to perform data transfers as close to wire speeds as possible. I work in high performance computing environments, and somethings can be done only by tweaking the kernel.

--
Pradeep Padala
http://ppadala.blogspot.com

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux