All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lyre <liyong@skybility.com>
To: linux-kernel@vger.kernel.org
Subject: alloc memory for massive legacy ptys
Date: Sat, 16 Apr 2011 15:08:04 +0800	[thread overview]
Message-ID: <4DA94054.3030303@skybility.com> (raw)

Hi all:

In a rare condition, I need to alloc massive legacy ptys on SLES 9 SP4,
kernel 2.6.5-7.308-smp.

I noticed the limit number of legacy ptys was 10922, due to the kmalloc
128kb limit. 10922 * 3 * sizeof (void *) was 8 bytes lesser than 128kb
on 32bit system.

I tried to use vmalloc instead of kmalloc in tty_register_driver(). My
system was able to boot, but I'm not sure if it was safely to do this,
since vmalloc don't guarant the phy memory were contiguous, and I don't
know the pty driver memory requirements neither.

                 reply	other threads:[~2011-04-16  8:06 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4DA94054.3030303@skybility.com \
    --to=liyong@skybility.com \
    --cc=linux-kernel@vger.kernel.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.