From: Jeff Garzik <jgarzik@pobox.com>
To: Sriram Narasimhan <nsri@tataelxsi.co.in>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Tasklet doubt!
Date: Fri, 11 Apr 2003 12:45:01 -0400 [thread overview]
Message-ID: <20030411164501.GA2721@gtf.org> (raw)
In-Reply-To: <3E96EAF5.4060609@tataelxsi.co.in>
On Fri, Apr 11, 2003 at 09:49:01PM +0530, Sriram Narasimhan wrote:
> Hello,
>
> How much of memory can be allocated from a tasklet ? [ kmalloc
> (GFP_ATOMIC) ].
>
> I was able to allocate upto 2.5 MB. But I would like to allocate upto
> 8MB. Is this possible?
You don't want to do that :) You're starving other GFP_ATOMIC
processes, and will increase system failures due to lack of memory...
even though there may be plenty outside the emergency pools.
One option is to create a background kernel thread (via schedule_task or
schedule_work, depending on your kernel version) that allocates memory
which your tasklet then takes.
Jeff
next prev parent reply other threads:[~2003-04-11 16:33 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-11 16:19 Sriram Narasimhan
2003-04-11 16:31 ` Robert Love
2003-04-11 16:45 ` Jeff Garzik [this message]
2003-04-11 16:46 ` Richard B. Johnson
2003-04-11 16:48 ` Robert Love
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=20030411164501.GA2721@gtf.org \
--to=jgarzik@pobox.com \
--cc=linux-kernel@vger.kernel.org \
--cc=nsri@tataelxsi.co.in \
/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
all inboxes | Powered by JetHome®