[Top] [All Lists]

Huge buffer allocation: best place

Subject: Huge buffer allocation: best place
From: "Luigi 'Comio' Mantellini" <>
Date: Wed, 1 Oct 2008 20:30:53 +0200
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=gamma; h=domainkey-signature:received:received:from:reply-to:organization:to :subject:date:user-agent:x-face:mime-version:content-type :content-transfer-encoding:content-disposition:message-id; bh=zThGdXRlHndV1qOCktoG/1q18Bk7AmMDVHVewpWKVNk=; b=D/JM0Bs7MPRmIm7TEvLYqpFD2aqZFgMI4Vfj7yKqoj4IxR/WA5tPz8d9fuLGLeXOT1 Jm8wufRw0oYC4W8T7d0aA1UXgvb4m91SWAMqlKqGMAu18tRUnr0HIacKeRNSP0nQTXqE NnERFp4ApspgI7r3cuvVjEP7Uws08ha5EsmaU=
Domainkey-signature: a=rsa-sha1; c=nofws;; s=gamma; h=from:reply-to:organization:to:subject:date:user-agent:x-face :mime-version:content-type:content-transfer-encoding :content-disposition:message-id; b=Ddl9O213KSuemODZo/s1z099oEWvpoNZvW/397rg7BqLHkYKY+7CMr7bRU9KUvc/MU kfgv9cjIQVaK6Gr6PaAEINpcq3cs5SqkwQoVUUz+RRpiApOFJ3o9r+06JlfQDLCUzno8 OHQZ6Iz5JjUBRR4SXJrylnFY/JZMBxZ66stC4=
Organization: Industrie Dial Face S.p.A.
Original-recipient: rfc822;
User-agent: KMail/1.10.1 (Linux/2.6.24-21-generic; KDE/4.1.1; i686; ; )

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 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


<Prev in Thread] Current Thread [Next in Thread>