Re: how to add anther file format interpreter to the kernel?

2010-07-09 Thread Hei Xia
Thank you very much. I'll learn the misc interpreter. the upper 1G space ==> I mean the kernel space. 2010/7/10 Greg KH > On Sat, Jul 10, 2010 at 10:11:45AM +0800, Hei Xia wrote: > > How does wine do it? > > The misc interpreter, which is there for whatever you can think of. > >

Re: how to add anther file format interpreter to the kernel?

2010-07-09 Thread Greg KH
On Sat, Jul 10, 2010 at 10:11:45AM +0800, Hei Xia wrote: > How does wine do it? The misc interpreter, which is there for whatever you can think of. good luck, greg k-h -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecar...@nl.linux.org Please read the F

Re: how to add anther file format interpreter to the kernel?

2010-07-09 Thread Mulyadi Santosa
2010/7/10 Hei Xia : > Actually I want to make a loader to load an ELF file. The kernel ocupy > the upper 1G space.If the loader is in userspace,it will pardon me, upper 1G? upper in which area? overall address space? > How does wine do it? i mean, Wine is registered with the help of "m

Re: how to add anther file format interpreter to the kernel?

2010-07-09 Thread Hei Xia
Actually I want to make a loader to load an ELF file. The kernel ocupy the upper 1G space.If the loader is in userspace,it will occupy the userspace(from about 0x804800 ),howerver the elf that'll be loaded also wants to occupy the userspace(from 0x804800 too ) so as not to be relocated so mu

Re: how to add anther file format interpreter to the kernel?

2010-07-09 Thread Mulyadi Santosa
On Sat, Jul 10, 2010 at 02:13, Greg KH wrote: > On Fri, Jul 09, 2010 at 03:07:53PM +0800, Hei Xia wrote: >>    Hi. >>    I want to add anther file format interpreter to the kernel. > > Why?  You can do this from userspace today, right?  It shouldn't need to > be in the kernel. Greg is talking abo

Re: SLUB and maximum PAGE_SIZE

2010-07-09 Thread Mulyadi Santosa
On Sat, Jul 10, 2010 at 06:53, GoatZilla wrote: > When it hits slab_order: > > http://lxr.linux.no/linux+v2.6.34.1/mm/slub.c#L1958 > > It finds that the minimum page order can hold more than > MAX_OBJS_PER_PAGE, so it then requests the order of the page that > holds the max objects. > > In our cas

SLUB and maximum PAGE_SIZE

2010-07-09 Thread GoatZilla
Let's say I set my PAGE_SIZE to be a massive 1MB. This is a huge page size, so it seems to make sense to have the min order for SLUB be 0. While booting, the kernel sets up the kmalloc caches for, say, the 8 byte size type. When it hits slab_order: http://lxr.linux.no/linux+v2.6.34.1/mm/slub.c#

Re: how to add anther file format interpreter to the kernel?

2010-07-09 Thread Greg KH
On Fri, Jul 09, 2010 at 03:07:53PM +0800, Hei Xia wrote: >Hi. >I want to add anther file format interpreter to the kernel. Why? You can do this from userspace today, right? It shouldn't need to be in the kernel. thanks, greg k-h -- To unsubscribe from this list: send an email with "un

Re: SCHED_OTHER

2010-07-09 Thread shailesh jain
Is there anything specific that you don't understand ? SCHED_OTHER: Default Linux time-sharing scheduling SCHED_OTHER can only be used at static priority 0. SCHED_OTHER is the standard Linux time-sharing scheduler that is intended for all processes that do not require special static priority real-

SCHED_OTHER

2010-07-09 Thread Rahul Kumar
Hi, I came across SCHED_OTHER to set the scheduling policy using pthread library routines. Which policy does it follow exactly?. I could understand SCHED_FIFO and SCHED_RR but i could not find much information on SCHED_OTHER. Can any one give me the pointers on where to look at?. -- To unsubscr

how to add anther file format interpreter to the kernel?

2010-07-09 Thread Hei Xia
Hi. I want to add anther file format interpreter to the kernel. I think it could be made a loadable module, but I don't know how to do it.