* alloc memory for massive legacy ptys
@ 2011-04-16 7:08 Lyre
0 siblings, 0 replies; only message in thread
From: Lyre @ 2011-04-16 7:08 UTC (permalink / raw)
To: linux-kernel
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.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-04-16 8:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-16 7:08 alloc memory for massive legacy ptys Lyre
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.