Which way is faster , when receive a lot of packets?

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

 



hi:
I have two ideas to handle the packet. 
1.I allocate  a memory pool and mmap into userspace, when packet is coming, I copy packet into the memory pool, then, userspace can access it. 
2.When packet is coming , I mmap the data of packet into userspace every time, then userspace can access this packet.

Which one is better, why?
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[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