Confusion in the usage of linux key management APIs

2013-03-22 Thread Ranjan Sinha
Hi, I need to store some crypto keys in the kernel where each key is related to a path on the disk. A restricted set of users can create files on such a path but the crypto keys are shared by all such user. I am thinking of using linux kernel key management facilities for my project. I have a

[Need Help] time: questions about kernel function timekeeping_bigadjust()

2013-03-22 Thread Dong Zhu
Hi All, Could anybody explain the following kernel code for me in detail ? I am royally confused on it. kernel/time/timekeeping.c timekeeping_bigadjust() { /* * Use the current error value to determine how much to look ahead. * The larger the error the slower we

Re: kernel build error

2013-03-22 Thread Kumar amit mehta
On Fri, Mar 22, 2013 at 10:41:56AM +0700, Mulyadi Santosa wrote: On Thu, Mar 21, 2013 at 1:16 PM, Kumar amit mehta gmate.a...@gmail.com wrote: boot issue. But before attaching these small files(136K and 32K respectively) and send it to the mailing list, I'd like to ask, if that's fine with

Re: optimization in kernel compile

2013-03-22 Thread Valdis . Kletnieks
On Fri, 22 Mar 2013 13:41:25 +0800, ishare said: Is it needed or must to compile fs and driver with -O2 option when compiling kernel ? It's not strictly mandatory to use -O2 (for a while, -Os was the default). There are a few places that for correctness, you *cannot* use -O0. For instance,

Re: optimization in kernel compile

2013-03-22 Thread ishare
On Fri, Mar 22, 2013 at 09:55:53AM -0400, valdis.kletni...@vt.edu wrote: On Fri, 22 Mar 2013 13:41:25 +0800, ishare said: Is it needed or must to compile fs and driver with -O2 option when compiling kernel ? It's not strictly mandatory to use -O2 (for a while, -Os was the default).

Re: optimization in kernel compile

2013-03-22 Thread Valdis . Kletnieks
On Fri, 22 Mar 2013 22:32:40 +0800, ishare said: are a few places that for correctness, you *cannot* use -O0. For instance, a few places where we use builtin_return_address() inside an inline (-O0 won't inline so builtin_return_address() ends up returning a pointer to a function when we

Re: BFQ: simple elevator

2013-03-22 Thread Raymond Jennings
On Thu, Mar 21, 2013 at 8:52 PM, Mulyadi Santosa mulyadi.sant...@gmail.com wrote: Hi On Thu, Mar 21, 2013 at 4:37 PM, Raymond Jennings shent...@gmail.com wrote: At any rate I suppose the best way to get started on this is to get a grip on the api's involved in receiving requests from

Re: BFQ: simple elevator

2013-03-22 Thread Raymond Jennings
I think I might split incoming requests into two heaps. The first heap would be synchronous requests such as reads and syncs that someone in userspace is blocking on. The second is background I/O like writeback and readahead. The same distinction that CFQ completely makes. Anyway, I plan to

Re: optimization in kernel compile

2013-03-22 Thread Valdis . Kletnieks
On Fri, 22 Mar 2013 10:52:56 -0400, valdis.kletni...@vt.edu said: No debug information is stripped by -O2. Debug information isn't emitted if you don't compile with -g. At one time, long ago (quite possibly literally before you were born for some of the younger readers on the list), gcc was

Re: BFQ: simple elevator

2013-03-22 Thread Valdis . Kletnieks
On Fri, 22 Mar 2013 13:53:45 -0700, Raymond Jennings said: The first heap would be synchronous requests such as reads and syncs that someone in userspace is blocking on. The second is background I/O like writeback and readahead. The same distinction that CFQ completely makes. Again, this

Re: BFQ: simple elevator

2013-03-22 Thread Raymond Jennings
On Fri, Mar 22, 2013 at 2:20 PM, valdis.kletni...@vt.edu wrote: On Fri, 22 Mar 2013 13:53:45 -0700, Raymond Jennings said: The first heap would be synchronous requests such as reads and syncs that someone in userspace is blocking on. The second is background I/O like writeback and

Why we Use both mm_users and mm_count in struct mm_struct{ }

2013-03-22 Thread Niroj Pokhrel
Hi all, I have been going through the Address Space in the linux and came across two variables in the struct mm_struct and I'm a bit confused about the two: struct mm_struct { .. atomic_t mm_users; atomic_t mm_count;