mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] [DISCUSS] Optimizing linux applications with the help of the kernel.
@ 2006-12-10 10:06 Amit Choudhary
  2006-12-10 10:20 ` bert hubert
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Amit Choudhary @ 2006-12-10 10:06 UTC (permalink / raw)
  To: Linux Kernel

Hi All,

I just had an idea for improving the performance of linux applications with some help from the
kernel. Let's say that I have to make a copy of a file. So, I read the input file into a buffer
and then write the buffer to the output file.

In both these cases the same data is coming from kernel_to_user and then from user_to_kernel. If
this can be short-circuited, that is, from kernel_to_kernel then the performance can be increased
a lot.

The psuedocode would be:

fd_inp = open _output_file
fd_out = open _input_file
instruct_kernel to write next data read from fd_inp to fd_out
read fd_out

The same mechanism can be applied to many other scenarios.
May be whatever I am thinking is wrong or involves lot of complexities but this is just a thought.

Regards,
Amit



 
____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com

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

end of thread, other threads:[~2006-12-10 11:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-10 10:06 [PATCH] [DISCUSS] Optimizing linux applications with the help of the kernel Amit Choudhary
2006-12-10 10:20 ` bert hubert
2006-12-10 11:10 ` Benoit Boissinot
2006-12-10 11:14 ` Jesper Juhl

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

all inboxes | Powered by JetHome®