benefits to likely() and unlikely()?

2008-03-29 Thread Robert P. J. Day
is there somewhere an actual quantification (is that a word?) to the benefits of likely() and unlikely() in the kernel code? i've always been curious about what difference those constructs made. thanks. rday -- Robert

some good online kernel docs?

2008-03-29 Thread Robert P. J. Day
yes, i realize that's a wide-open topic, but i'm giving some tutorials on the kernel in the near future and i want to collect some publicly-available kernel docs to package and give away to the students. and given how quickly the kernel changes these days, a lot of what is out there is already

Re: Priority Inversion and Inheritance - Where is that?

2008-03-29 Thread Mulyadi Santosa
Hi On Fri, Mar 28, 2008 at 3:59 PM, Peter Teoh [EMAIL PROTECTED] wrote: sounds like Windows's scheduler, cannot remember. But I thought a lot of scheduler have such heuristics in it. Not sure what was in the past. I go with Con's opinion in some degree. Scheduler should avoid using

Re: benefits to likely() and unlikely()?

2008-03-29 Thread Erik Mouw
On Sat, Mar 29, 2008 at 04:03:18AM -0400, Robert P. J. Day wrote: is there somewhere an actual quantification (is that a word?) to the benefits of likely() and unlikely() in the kernel code? i've always been curious about what difference those constructs made. thanks. They are macros

Re: question regarding undeletion in ext3.

2008-03-29 Thread Manish Katiyar
On Sat, Mar 29, 2008 at 12:44 PM, Peter Teoh [EMAIL PROTECTED] wrote: Hi Katiyar, On Wed, Mar 26, 2008 at 2:48 AM, Manish Katiyar [EMAIL PROTECTED] wrote: Apologies for spamming this list as this is not really a kernel question, but I could not find any appropriate list. Probably

Re: Kernel Mode Linux : Execute user processes in kernel mode

2008-03-29 Thread Peter Teoh
On Fri, Mar 28, 2008 at 7:04 PM, Erik Mouw [EMAIL PROTECTED] wrote: It's a great way to be sure a single error in your userland program will indeed crash the whole system. IOW: It sacrifies the protection the kernel provides for a very minimal speed increase. True I agree with you. But

Re: sudo configuration on FC8

2008-03-29 Thread Mayank Kaushik
On Wed, Mar 26, 2008 at 4:30 PM, bhanu nani [EMAIL PROTECTED] wrote: Hi all, I am trying to configure a user without the prompting for a passwd on my FC-8 Linux. I added on the follwoing statement to /etc/sudoers with 'visudo' bhanuALL=(ALL) NOPASSWD:ALL I have no idea if it

Re: Does the File suystem do buffer cache for char device

2008-03-29 Thread bhanu nani
Hi Erik, Thanks. I got it. I am writing simple module and testing them. I am trying to write a MACRO to define my own LOGLEVEL for the printk statement See it below: #define PDEBUG (Level, fmt, args...) do { if (Level == 0) printk(MYDRV:fmt,

Re: Documentation for jbd2

2008-03-29 Thread Manish Katiyar
Thanks a lot Peter, That is really nice piece of information. And i like your suggestion. I will try to compile and put all the things I find related to jbd2 and may be we can put it somewhere. On Fri, Mar 28, 2008 at 10:55 PM, Peter Teoh [EMAIL PROTECTED] wrote: On Wed, Mar 26, 2008 at 3:31

Re: Kernel Mode Linux : Execute user processes in kernel mode

2008-03-29 Thread Mulyadi Santosa
Hi On Thu, Mar 27, 2008 at 9:14 PM, Peter Teoh [EMAIL PROTECTED] wrote: This is interesting - contrary to what we usually talked about - UserModeLinux - this is the opposite: URL: http://web.yl.is.s.u-tokyo.ac.jp/~tosh/kml/ Yup, I read that since around 2003 IIRC. basically, you made user

Re: Documentation for jbd2

2008-03-29 Thread Peter Teoh
On Wed, Mar 26, 2008 at 3:31 AM, Manish Katiyar [EMAIL PROTECTED] wrote: Other than the source code, are there any links/resources for the new jbd2 design ? -- Thanks Regards, Manish Katiyar ( http://mkatiyar.googlepages.com ) As it is

shared libs multiple times in ram

2008-03-29 Thread cadetg marco
Hi KernelNewbies! Why are shared libraries hold multiple times in memory even if two processes uses the same libraries? I've made a little test with firefox and epiphany both are using the same SO -- /usr/lib64/pango/1.6.0/modules/pango-basic-fc.so. Anyway if I look into /proc/$PID/maps of both

where went /dev/kmem?

2008-03-29 Thread Robert P. J. Day
following up on a short article i just read, where is /dev/kmem these days? was it actually deleted? back in 2005, jon corbet was certainly hinting at this: http://lwn.net/Articles/147901/ and i don't see it today on my system, and i don't see a kernel config option for it either, but i

Fwd: Priority Inversion and Inheritance - Where is that?

2008-03-29 Thread Mulyadi Santosa
-- Forwarded message -- From: Mulyadi Santosa [EMAIL PROTECTED] Date: Thu, Mar 27, 2008 at 4:54 PM Subject: Re: Priority Inversion and Inheritance - Where is that? To: Peter Teoh [EMAIL PROTECTED] Hi Peter Happy Easter (if you celebrate it) :) On 3/27/08, Peter Teoh [EMAIL

Re: benefits to likely() and unlikely()?

2008-03-29 Thread Manish Katiyar
On Sat, Mar 29, 2008 at 1:33 PM, Robert P. J. Day [EMAIL PROTECTED] wrote: is there somewhere an actual quantification (is that a word?) to the benefits of likely() and unlikely() in the kernel code? i've always been curious about what difference those constructs made. thanks. Hi

Re: benefits to likely() and unlikely()?

2008-03-29 Thread Li Zefan
Erik Mouw wrote: On Sat, Mar 29, 2008 at 04:03:18AM -0400, Robert P. J. Day wrote: is there somewhere an actual quantification (is that a word?) to the benefits of likely() and unlikely() in the kernel code? i've always been curious about what difference those constructs made. thanks.