linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* print user stack
@ 2010-10-23 12:16 ratheesh k
  2010-10-23 13:18 ` RT scheduling / scheduling of RT groups Armin Steinhoff
  2010-10-23 13:26 ` print user stack Luis Claudio R. Goncalves
  0 siblings, 2 replies; 6+ messages in thread
From: ratheesh k @ 2010-10-23 12:16 UTC (permalink / raw)
  To: linux-rt-users

I had a strange problem of core file getting truncated. I could not
find any stack trace.


So, i wrote a kernel module. Which will find a  task_struct using pid.
 find_task_jby_pid.
then i used show_stack for the same task struct to list out the stack
trace. But it is printing the kernel stack not user stack. Any idea
how to print user stack .

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RT scheduling / scheduling of RT groups
  2010-10-23 12:16 print user stack ratheesh k
@ 2010-10-23 13:18 ` Armin Steinhoff
  2010-10-24 10:12   ` Armin Steinhoff
  2010-10-25 19:37   ` Xianghua Xiao
  2010-10-23 13:26 ` print user stack Luis Claudio R. Goncalves
  1 sibling, 2 replies; 6+ messages in thread
From: Armin Steinhoff @ 2010-10-23 13:18 UTC (permalink / raw)
  To: linux-rt-users

Hi all,

AFAIK,  the RT scheduler (sched_rt.c) is part of the CFS.
  Is there a way to handle task running with SCHED_NORMAL and 
SCHED_OTHER also with the RT scheduler ?
( CFS deactivated )

There are scheduling groups. In which way (priorities? other 
attributes?)  are these groups defined ?
  How can sched_rt_period and sched_rt_runtime be set or read?

Cheers

--Armin





^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: print user stack
  2010-10-23 12:16 print user stack ratheesh k
  2010-10-23 13:18 ` RT scheduling / scheduling of RT groups Armin Steinhoff
@ 2010-10-23 13:26 ` Luis Claudio R. Goncalves
  2010-10-23 14:31   ` ratheesh k
  1 sibling, 1 reply; 6+ messages in thread
From: Luis Claudio R. Goncalves @ 2010-10-23 13:26 UTC (permalink / raw)
  To: ratheesh k; +Cc: linux-rt-users

On Sat, Oct 23, 2010 at 05:46:35PM +0530, ratheesh k wrote:
| I had a strange problem of core file getting truncated. I could not
| find any stack trace.
| 
| 
| So, i wrote a kernel module. Which will find a  task_struct using pid.
|  find_task_jby_pid.
| then i used show_stack for the same task struct to list out the stack
| trace. But it is printing the kernel stack not user stack. Any idea
| how to print user stack .

Sorry if that sounds silly, but have you verified your core file size limit
(ulimit -c)?

About printing the user stack from whithin the kernel, I understand the
utrace folks were working on that.

Cheers,
Luis


-- 
[ Luis Claudio R. Goncalves                    Bass - Gospel - RT ]
[ Fingerprint: 4FDD B8C4 3C59 34BD 8BE9  2696 7203 D980 A448 C8F8 ]


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: print user stack
  2010-10-23 13:26 ` print user stack Luis Claudio R. Goncalves
@ 2010-10-23 14:31   ` ratheesh k
  0 siblings, 0 replies; 6+ messages in thread
From: ratheesh k @ 2010-10-23 14:31 UTC (permalink / raw)
  To: Luis Claudio R. Goncalves; +Cc: linux-rt-users

On Sat, Oct 23, 2010 at 6:56 PM, Luis Claudio R. Goncalves
<lclaudio@uudg.org> wrote:
>but have you verified your core file size limit
>(ulimit -c)?

Yes. it is unlimited.

-Ratheesh

> On Sat, Oct 23, 2010 at 05:46:35PM +0530, ratheesh k wrote:
> | I had a strange problem of core file getting truncated. I could not
> | find any stack trace.
> |
> |
> | So, i wrote a kernel module. Which will find a  task_struct using pid.
> |  find_task_jby_pid.
> | then i used show_stack for the same task struct to list out the stack
> | trace. But it is printing the kernel stack not user stack. Any idea
> | how to print user stack .
>
> Sorry if that sounds silly, but have you verified your core file size limit
> (ulimit -c)?
>
> About printing the user stack from whithin the kernel, I understand the
> utrace folks were working on that.
>
> Cheers,
> Luis
>
>
> --
> [ Luis Claudio R. Goncalves                    Bass - Gospel - RT ]
> [ Fingerprint: 4FDD B8C4 3C59 34BD 8BE9  2696 7203 D980 A448 C8F8 ]
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: RT scheduling / scheduling of RT groups
  2010-10-23 13:18 ` RT scheduling / scheduling of RT groups Armin Steinhoff
@ 2010-10-24 10:12   ` Armin Steinhoff
  2010-10-25 19:37   ` Xianghua Xiao
  1 sibling, 0 replies; 6+ messages in thread
From: Armin Steinhoff @ 2010-10-24 10:12 UTC (permalink / raw)
  To: linux-rt-users


is KUPS the answer ??


Armin Steinhoff wrote:
> Hi all,
>
> AFAIK,  the RT scheduler (sched_rt.c) is part of the CFS.
>  Is there a way to handle task running with SCHED_NORMAL and 
> SCHED_OTHER also with the RT scheduler ?
> ( CFS deactivated )
>
> There are scheduling groups. In which way (priorities? other 
> attributes?)  are these groups defined ?
>  How can sched_rt_period and sched_rt_runtime be set or read?
>
> Cheers
>
> --Armin
>
>
>
>
> -- 
> To unsubscribe from this list: send the line "unsubscribe 
> linux-rt-users" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: RT scheduling / scheduling of RT groups
  2010-10-23 13:18 ` RT scheduling / scheduling of RT groups Armin Steinhoff
  2010-10-24 10:12   ` Armin Steinhoff
@ 2010-10-25 19:37   ` Xianghua Xiao
  1 sibling, 0 replies; 6+ messages in thread
From: Xianghua Xiao @ 2010-10-25 19:37 UTC (permalink / raw)
  To: Armin Steinhoff; +Cc: linux-rt-users

On Sat, Oct 23, 2010 at 8:18 AM, Armin Steinhoff <armin@steinhoff.de> wrote:
> Hi all,
>
> AFAIK,  the RT scheduler (sched_rt.c) is part of the CFS.
>  Is there a way to handle task running with SCHED_NORMAL and SCHED_OTHER
> also with the RT scheduler ?
> ( CFS deactivated )
>
> There are scheduling groups. In which way (priorities? other attributes?)
>  are these groups defined ?
>  How can sched_rt_period and sched_rt_runtime be set or read?
>
> Cheers
>
> --Armin
>
>
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

somehow I thought sched_fair.c(CFS) and sched_rt.c(RT scheduler) are
separated, in that RT is always taking precedances over CFS and CFS is
only for non-RT process/threads, am I missing something?

xianghua
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-10-25 19:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-23 12:16 print user stack ratheesh k
2010-10-23 13:18 ` RT scheduling / scheduling of RT groups Armin Steinhoff
2010-10-24 10:12   ` Armin Steinhoff
2010-10-25 19:37   ` Xianghua Xiao
2010-10-23 13:26 ` print user stack Luis Claudio R. Goncalves
2010-10-23 14:31   ` ratheesh k

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).