linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Vladimir Dergachev <volodya@mindspring.com>
To: "Amit S. Jain" <amitjain@tifr.res.in>
Cc: linux-mm@kvack.org
Subject: Re: Allocation of kernel memory >128K
Date: Wed, 19 Dec 2001 22:56:50 -0500 (EST)	[thread overview]
Message-ID: <Pine.LNX.4.20.0112192254260.10881-100000@node2.localnet.net> (raw)
In-Reply-To: <Pine.LNX.4.21.0112121303010.1319-100000@mailhost.tifr.res.in>

Take a look at rvmalloc code in bt848 driver (or a copy of it in km,
http://gatos.sf.net which is somewhat separated out). BT848 and km are 
using it to get large chunks (~300K) of memory which are contiguous in
kernel virtual space but not contiguous physically. Sure makes much
easier to work with buffers than a bunch of separate pages.

                          Vladimir Dergachev

On Wed, 12 Dec 2001, Amit S. Jain wrote:

> 
> Thank u everyone for the response to my question bout allocatin huge
> amount of memeory in kernel space....
> For a few people who wanted to know why I m allocating such a huge memory
> and do i really need contiguous memory...here it is
> 
> ---- Basically what my module is doing is trying to make the communication
> between kernel to kernel in a Linux Cluster transparent tp TCP/IP.
> So to transmit the data I copy the data from the user area to the kernel
> area and then to the n/w buffers.So what I was trying to do is transfer
> the entire data from user to kernel space at one go(allocating huge memory
> at kernel)....since this is not possible I can always divide the data into
> 30K packets and then copy it to the kernel space...
> 
> P.S I am new to the Linux Kernel ...hence please excuse ne naive comments
> in the above ..
> 
> 
> Amit 
> 
> 
> --
> To unsubscribe, send a message with 'unsubscribe linux-mm' in
> the body to majordomo@kvack.org.  For more info on Linux MM,
> see: http://www.linux-mm.org/
> 

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/

  reply	other threads:[~2001-12-20  3:56 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-11 10:06 Amit S. Jain
2001-12-11 10:41 ` Eric W. Biederman
2001-12-12  7:40   ` Amit S. Jain
2001-12-20  3:56     ` Vladimir Dergachev [this message]
2001-12-27 11:08 ` Amit S. Jain
2002-01-03 22:59   ` Ravi K
2001-12-11 15:27 Mark_H_Johnson
2001-12-11 18:13 ` Benjamin LaHaise

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.20.0112192254260.10881-100000@node2.localnet.net \
    --to=volodya@mindspring.com \
    --cc=amitjain@tifr.res.in \
    --cc=linux-mm@kvack.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox