Re: kmalloc max allocation size, netlink max buffer zise

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

 



On 6/22/05, MHD.Tayseer <gilmour@xxxxxxxxxxx> wrote:
> Hi everyone:
> in the 2.6 kernel:
> 1- what is the maximum size i can kmalloc it in kernel ?
            I had read in a document that said, if u use GFP_KERNEL u
can use 128kb.  if u  use GFP_DMA, then  the  maxm size can be of the
page size.

> 2- what is the maximum size that netlink socket is capable of sending in
> one shot ?
     I dont know about the netlink socket, can anyone throw more light
on this please.

> i've googled but the results was an out of date articles (latest was
> 2002) so i'm not sure that the limitation they were mentioning is still
> exists (the articles where saying about 2Mb of maximum malloc size in
> kernel 2.2 2.3)
> 
> if you wanna know why should i need large kmalloc and large netlink msg
> size cause I'm implementing the vfs call :
> ssize_t my_fs_write(int gfd, const char __user * data, size_t count,
> loff_t * offset)
> and the actual file system implementation is in user level (user-level
> file server)
> so i have to copy the data from user to kernel and then send it via
> netlink socket to the userlevel file system server
> Thanks in advance
> MHD
> 
> 
> --
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive:       http://mail.nl.linux.org/kernelnewbies/
> FAQ:           http://kernelnewbies.org/faq/
> 
>

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[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