Re: When and how to use ftrace?

2010-06-08 Thread Neependra Khare
On Wed, Jun 9, 2010 at 11:02 AM, Ryan Wang wrote: > > I really want to know is the differences between ftrace and other kernel > debug > tools such as kdump, kdb, etc. > Lets say you want to know what ext2/ext3/ext4 functions are called when you run mkdir command on ext2/ext3/ext4 mounted filesy

Re: When and how to use ftrace?

2010-06-08 Thread Ryan Wang
2010/6/9 Steven Rostedt : > On Wed, 2010-06-09 at 09:38 +0800, Ryan Wang wrote: >> Hi all, >> >>        I'm new to kernel development, and I'm learning >> ftrace recently. I have one question: >>        When to use ftrace, or in which cases ftrace can be >> more efficient? > > I can't really answer

Re: Doubt in function typedef's

2010-06-08 Thread Mandeep Sandhu
On Wed, Jun 9, 2010 at 3:35 AM, Balachandar wrote: > Hello, >  I came across the following statements and confused about it. > > typedef void vq_callback_t(struct virtqueue *); This is typedef'ing the function vq_callback_t. > > > > and in some other file > > vq_callback_t *callbacks[] = { skb_

Re: Doubt in function typedef's

2010-06-08 Thread Dexter
On Tue, Jun 8, 2010 at 4:32 PM, Dexter wrote: > They are exactly the same. Someone used () in one declaration but not the > other, they are identical functionally. > > > On Tue, Jun 8, 2010 at 4:05 PM, Balachandar wrote: > >> Hello, >> I came across the following statements and confused about i

Re: Doubt in function typedef's

2010-06-08 Thread Dexter
They are exactly the same. Someone used () in one declaration but not the other, they are identical functionally. On Tue, Jun 8, 2010 at 4:05 PM, Balachandar wrote: > Hello, > I came across the following statements and confused about it. > > typedef void vq_callback_t >

Doubt in function typedef's

2010-06-08 Thread Balachandar
Hello, I came across the following statements and confused about it. typedef void vq_callback_t (struct virtqueue *); and in some other file vq_callback_t

Re: final proposal for online kernel programmers' beginner course

2010-06-08 Thread Anand Arumugam
Awesome! On Tue, Jun 8, 2010 at 7:55 AM, Robert P. J. Day wrote: > > here: > > > http://www.crashcourse.ca/wiki/index.php/Online_beginner%27s_kernel_programming_course > > i'll probably be tweaking it for a while today based on stuff i've > forgotten, but that's pretty much the final format i'm

Re: final proposal for online kernel programmers' beginner course

2010-06-08 Thread Robert P. J. Day
On Tue, 8 Jun 2010, julie Sullivan wrote: > ...Yep, I'll definitely sign up for this. Paypal seems the way to go > as I will be paying (my end) in GBP. I've enjoyed your articles for > linux.com, Rob and they seem worth 39$CAD on their own. thanks, i appreciate that. truth be told, the first p

Re: final proposal for online kernel programmers' beginner course

2010-06-08 Thread julie Sullivan
...Yep, I'll definitely sign up for this. Paypal seems the way to go as I will be paying (my end) in GBP. I've enjoyed your articles for linux.com, Rob and they seem worth 39$CAD on their own. The nice thing about a tutorial series like this too is as it's more on the fly it won't be out of date l

Re: memory limit/quota per user

2010-06-08 Thread Tharindu Rukshan Bamunuarachchi
what could be possible with cgroups ... any resource on how to use cgroups ? __ tharindu.info "those that can, do. Those that can’t, complain." -- Linus On Tue, Jun 8, 2010 at 6:34 PM, Mulyadi Santosa wrote: > On Tue, Jun 8, 2010 at 17:28, Tharindu Rukshan Bamunuarachchi > wrote: >> Hello All

Re: memory limit/quota per user

2010-06-08 Thread Mulyadi Santosa
On Tue, Jun 8, 2010 at 17:28, Tharindu Rukshan Bamunuarachchi wrote: > Hello All, > > Is it possible to limit memory quota per user (like disk quota) in linux ? reminds me to cgroup. But AFAIK, cgroup still can't do per user resource accounting. -- regards, Mulyadi Santosa Freelance Linux trai

Re: final proposal for online kernel programmers' beginner course

2010-06-08 Thread Robert P. J. Day
On Tue, 8 Jun 2010, Srdjan Todorovic wrote: > Hi, > > On 8 June 2010 12:55, Robert P. J. Day wrote: > > > http://www.crashcourse.ca/wiki/index.php/Online_beginner%27s_kernel_programming_course > > This must be the first time I've ever seen you use capitals when > writing prose. ;-) when it's i

Re: final proposal for online kernel programmers' beginner course

2010-06-08 Thread Srdjan Todorovic
Hi, On 8 June 2010 12:55, Robert P. J. Day wrote: > http://www.crashcourse.ca/wiki/index.php/Online_beginner%27s_kernel_programming_course This must be the first time I've ever seen you use capitals when writing prose. ;-) A few questions: 1) Will you take Paypal or Credit Card? OK I see

Re: how does a filesystem submit a block IO request

2010-06-08 Thread Da Zheng
Thanks for the reply. Just one more question: what is ext2_read? I don't find a definition of ext2_read in Linux v2.6.29. The only thing I found is ext2_readpage, but apparently, it's not what you meant. Best regards, Zheng Da On 10-6-3 下午2:45, nidhi mittal hada wrote: > see as > it happens like

final proposal for online kernel programmers' beginner course

2010-06-08 Thread Robert P. J. Day
here: http://www.crashcourse.ca/wiki/index.php/Online_beginner%27s_kernel_programming_course i'll probably be tweaking it for a while today based on stuff i've forgotten, but that's pretty much the final format i'm going with. let me know what you think because, at this point, i'm pretty sure

Re: I/O and memory barriers

2010-06-08 Thread luca ellero
Pei Lin ha scritto: 2010/6/7 luca ellero : Thanks again for your replay, anyway I'm still confused. See inline comments. Pei Lin wrote: 2010/5/31 luca ellero : Pei Lin wrote: 2010/5/17 luca ellero : Hi list, I have some (maybe stupid) questions which

Re: memory limit/quota per user

2010-06-08 Thread Srdjan Todorovic
Hi, On 8 June 2010 11:28, Tharindu Rukshan Bamunuarachchi wrote: > Is it possible to limit memory quota per user (like disk quota) in linux ? I have no idea if there's an existing framework for that. But what you wrote below gives me an idea. > AFAIK, RLIMIT_* (i.e. RSS, DATA) are applicable p

Re: memory limit/quota per user

2010-06-08 Thread Tharindu Rukshan Bamunuarachchi
yes, it is not easy to implement such mechanism. for each memory allocation, it should be audited for user maximum limit. this helps us to maintain good resource sharing with multiple user/environment machines. __ tharindu.info "those that can, do. Those that can’t, complain." -- Linus On Tue

memory limit/quota per user

2010-06-08 Thread Tharindu Rukshan Bamunuarachchi
Hello All, Is it possible to limit memory quota per user (like disk quota) in linux ? AFAIK, RLIMIT_* (i.e. RSS, DATA) are applicable per process not per user. thankx a lot. tharindu. "those that can, do. Those that can’t, complain." -- Linus -- To unsubscribe from this list: send an email wi