First of all, thanks. I've developing a UDP Streaming server. in order to isolate the problem i wrote a simple code that performs the required sendto commands in a single thread in a loop. due to accuracy requirements sendto executes are being triggered very often (few hundreds microseconds) using /dev/rtc. due to this accuracy requirement (unless other option is suggested) i need to call sendto every short interval because i dont have any other accuracy solution. i measured ticks for sendto system call and found that under heavy load the system has problem, sendto is the only system call and the cpu does not have any time to perform its tasks so sendto actually causes content switch. in few streams stress sendto costs less than 20,000 ticks and under heavy load it can reach 50,000 ticks. As far as i understand i dont have any solution but implementing sendto wrapper in kernel that will receive several sendto commands in one system call. am i right? On Tue, 2004-12-21 at 05:48 +0100, simon wrote: > hello Nir > > Nir Dremer wrote: > > I'm looking for a way to perform several SendTo command from user-space > > in one system call.. is there any way to do so? > all user space functions to write, read on a socket use the socket > system call... even if you enable some logical abstraction with a user > space function... nothing change for the kernel > > > > The purpose is to avoid the system call overhead due to the massive use > > of SendTo in my code. > do you have a performance problem ? > may be you can use threads or fork process to have a better deal with > the scheduler... > try to optimisate your code... > > > > any help will be appreciated... > may be you can send me a quick example of your code... > > simon > - : send the line "unsubscribe linux-net" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html