From: "Luigi 'Comio' Mantellini" <luigi.mantellini.ml@gmail.com>
To: linux-mips@linux-mips.org
Subject: Huge buffer allocation: best place
Date: Wed, 1 Oct 2008 20:30:53 +0200 [thread overview]
Message-ID: <200810012030.54480.luigi.mantellini.ml@gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 729 bytes --]
Hi ml,
I need to allocate a huge contiguous buffer (~6MByte) shared with a secondary
cpu (a packet processor). Which is the best place and the best way to do this?
The main problem is that using a simple kmalloc at module init time there
isn't sufficient contiguous memory to cover the request. I should use (I
suppose) the alloc_bootmem_* macros but I'm not sure where is the best place
to reserve my memory.
For now I defined a global bad huge vector... but I'm not happy for this
solution...
thanks in advance.
luigi
--
Luigi Mantellini
R&D - Software
Industrie Dial Face S.p.A.
Via Canzo, 4
20068 Peschiera Borromeo (MI), Italy
Tel.: +39 02 5167 2813
Fax: +39 02 5167 2459
Email: luigi.mantellini@idf-hit.com
[-- Attachment #2: Type: text/html, Size: 4329 bytes --]
next reply other threads:[~2008-10-01 18:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-01 18:30 Luigi 'Comio' Mantellini [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-10-08 16:39 Huge buffer allocation: best place C Michael Sundius
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=200810012030.54480.luigi.mantellini.ml@gmail.com \
--to=luigi.mantellini.ml@gmail.com \
--cc=linux-mips@linux-mips.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.