Re: patch for x86 treatment of fs and gs in signal handlers

H. Peter Anvin (hpa@transmeta.com)
27 Aug 1998 21:09:47 GMT


Followup to: <3.0.1.16.19980827130136.1157e860@local.hulcote.com>
By author: David Bruce <david@hulcote.com>
In newsgroup: linux.dev.kernel
>
> Hello all
>
> >
> >Once we can to some measurements we might come up with some proposal.
> >Right now I can say that allocating all 8192 LDT entries is overkill
> >for us.
> >
>
> IMHO the LDT allocation is overkill in almost all situations. It should
> be fairly easy to have variable length LDT's allocated in say 512 LDT
> entry chunks.
>
> At the moment it is very easy for LDT's to use up large chunks of your
> physical memory but hold only a few bytes of useful infomation.
>
> Regards
> David Bruce
>

512 descriptors would be a page, which would be a good allocation
size, although for a smaller LDT perhaps a fractional page would make
sense. Note the LDT can be copied/moved if it needs to be
reallocated, so it is "benign" from a memory allocation standpoint.
It could even be swapped out, although at the moment it would require
it to be put in user memory, which wouldn't be a good idea.

-hpa

-- 
    PGP: 2047/2A960705 BA 03 D3 2C 14 A8 A8 BD  1E DF FE 69 EE 35 BD 74
    See http://www.zytor.com/~hpa/ for web page and full PGP public key
        I am Bahá'í -- ask me about it or see http://www.bahai.org/
   "To love another person is to see the face of God." -- Les Misérables

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html