Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Msg Q for user <-> kernel space

11 views
Skip to first unread message

Aashima Raturi

unread,
Nov 21, 2006, 11:10:53 PM11/21/06
to
We are using message queue interface for sending messages from kernel to
user space and vice versa.
This works fine for upto 6k packet size and beyond that the kernel crashes.
The error that it gives is kernel stack overflow and sometimes kernel
BUG in sched.c:915!.
I also increased the MSGMNB and MSGMAX values in msg.h.
Could you please suggest how to go about in solving this problem?


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/


Manoj Awasthi

unread,
Nov 22, 2006, 2:28:36 AM11/22/06
to
On 11/22/06, Aashima Raturi <aas...@cdotb.ernet.in> wrote:
We are using message queue interface for sending messages from kernel to
user space and vice versa.
This works fine for upto 6k packet size and beyond that the kernel crashes.
The error that it gives is kernel stack overflow and sometimes kernel
BUG in sched.c:915!.

Please mention  the kernel version for this to make sense.

I also increased the MSGMNB and MSGMAX values in msg.h.
Could you please suggest how to go about in solving this problem?


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/




--

What is important?  What you want to be true, or what is true?
---------------------------------------------------------------------------
mail to: lkml....@gmail.com
blog    : http://awmanoj.blogspot.com

jyothi

unread,
Nov 22, 2006, 4:00:18 AM11/22/06
to
We are using message queue interface for sending messages from kernel to
user space and vice versa.
This works fine for upto 6k packet size and beyond that the kernel crashes.
The error that it gives is kernel stack overflow and sometimes kernel
BUG in sched.c:915!.

Please mention  the kernel version for this to make sense.

I am using linux-2.4.20

mayank rana

unread,
Nov 22, 2006, 5:02:21 AM11/22/06
to
Hi,

1. You need to recompile your kernel after modifying msg.h file.
2.  also try to see message size using /proc/sys/kernel/msgmax

Regards,
_-_Mayank Rana_-_
"The greatest pleasure in life is to do what people say U cannot do."

jyothi <jyo...@cdotb.ernet.in> wrote:


Sponsored Link

Rates near 39yr lows. $510,000 Loan for $1698/mo - Calculate new house payment

Rajat Jain

unread,
Nov 23, 2006, 10:53:17 PM11/23/06
to
On 11/22/06, Aashima Raturi <aas...@cdotb.ernet.in> wrote:
> We are using message queue interface for sending messages from kernel to
> user space and vice versa.
> This works fine for upto 6k packet size and beyond that the kernel crashes.
> The error that it gives is kernel stack overflow and sometimes kernel
> BUG in sched.c:915!.
> I also increased the MSGMNB and MSGMAX values in msg.h.
> Could you please suggest how to go about in solving this problem?
>

Are you creating the temporary packet to be sent to user space as a
local variable? Or kmallocing the memory? In case of local variable,
the problem is quite obvious.

Regards,

Rajat

0 new messages