lkml.org 
[lkml]   [2009]   [Apr]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [PATCH 1/3] IB/ehca: Replace vmalloc with kmalloc
    Date
    On Wednesday 22 April 2009 04:10:18 pm michael wrote:
    > Hi,
    >

    > I don't take the point, if it is not import use the vmalloc. Why you try
    > with a kmalloc
    > alloc first? and why do not use kzalloc?

    Because kmalloc() is faster than vmalloc() causing a huge performance win
    when someone allocates a large number of queue pairs. We fall back to
    vmalloc() only if kmalloc() can't deliver the memory chunk.
    We don't need kzalloc because we fill the list right after the alloc.

    regards Stefan



    \
     
     \ /
      Last update: 2009-04-22 18:03    [W:0.029 / U:130.380 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site