Re: block size in networking

2013-12-09 Thread Vivek Dasgupta
Hi Clove, There is no block size as such, in networking. A basic unit of data transfer in networking is called a packet. There is no fixed size as such for a packet, unlike a sector or block size in storage. However the packet size is generally determined by the MTU (Maximum Transmission Unit),

Re: what is the difference between kmalloc and vmalloc?

2012-11-21 Thread Vivek Dasgupta
kmalloc allocates physically contiguous memory, while vmalloc allocates memory which is only virtually contiguous and not necessarily physically contiguous. Usually physically contiguous memory is required for hardware devices (dma etc) , thus kmalloc is useful for allocating such memory. And