Re: Shared buffer between user and kernel space

2010-05-03 Thread Arun KS
check this http://people.ee.ethz.ch/~arkeller/linux/kernel_user_space_howto.html On Tue, May 4, 2010 at 11:17 AM, Balachandar wrote: > Hi, > I need a shared buffer between user and kernel space. I read that one way > is to allocated buffer in kernel and then call mmap from the user space. I > s

Re: System memory increased while process is running is not released back upon process exit

2010-05-03 Thread ravikumar
Could somebody please provide your thoughts or inputs on below mentioned issue. Regards, Ravikumar ravikumar wrote: Hi all, I've some application which will do much I/O disk. While this application is running the memory usage of system is continuously increasing. After stopping my process

Re: Stack Tracing using Ftrace

2010-05-03 Thread Neependra Khare
On Tue, May 4, 2010 at 12:01 AM, Steven Rostedt wrote: > If he sees the 7k in the ftrace stack_trace, then it should show where > the problems are. The DEBUG_STACKOVERFLOW only tests the stack on > interrupts. > Yes, I can see where the problem is. Just wondering about the Ftrace and SystemTap o

Re: System memory increased while process is running is not released back upon process exit

2010-05-03 Thread ravikumar
Around 12 hours back I ran the du command, till now the memory was not re-claimed back Regards, Ravikumar Michael Blizek wrote: Hi! On 19:09 Mon 03 May , ravikumar wrote: ... The same behavior I observed with my application. I stuck up at this stage to analyze the issue. Is really Li

Shared buffer between user and kernel space

2010-05-03 Thread Balachandar
Hi, I need a shared buffer between user and kernel space. I read that one way is to allocated buffer in kernel and then call mmap from the user space. I searched for an example but couldn't find something useful. If you know, could you please send me any links or sample code that does this Tha

Re: Stack Tracing using Ftrace

2010-05-03 Thread Manish Katiyar
On Mon, May 3, 2010 at 7:02 PM, Neependra Khare wrote: > Hi, > > I wrote a module and somehow it is corrupting the thread_info of the > process. > After some debugging I concluded that its corrupting the kernel stack. > > Then I came across Ftrace to get the stack trace, which confirmed high stack

Re: System memory increased while process is running is not released back upon process exit

2010-05-03 Thread Michael Blizek
Hi! On 19:09 Mon 03 May , ravikumar wrote: ... > The same behavior I observed with my application. > > I stuck up at this stage to analyze the issue. > Is really Linux Kernel is taken the physical memory for buffering > and not releasing in back ? > If yes , how long it will hold ? I have se

System memory increased while process is running is not released back upon process exit

2010-05-03 Thread ravikumar
Hi all, I've some application which will do much I/O disk. While this application is running the memory usage of system is continuously increasing. After stopping my process , no memory usage increased. But leaked/increased memory was not released back upon my application exit.This proves t

Stack Tracing using Ftrace

2010-05-03 Thread Neependra Khare
Hi, I wrote a module and somehow it is corrupting the thread_info of the process. After some debugging I concluded that its corrupting the kernel stack. Then I came across Ftrace to get the stack trace, which confirmed high stack usage. http://lwn.net/Articles/366796/ I see around 7K in the dept