taskset hangs

Bug #1198029 reported by Worik
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mythtv (Ubuntu)
Triaged
Low
Unassigned

Bug Description

mythtv-setup hangs on

xterm -title "MythTV Setup Terminal" -e taskset -c 0 /usr/bin/mythtv-setup.real --syslog local7

xterm -title "MythTV Setup Terminal" -e /usr/bin/mythtv-setup.real --syslog local7

 fixes it.

I've filed this in mythtv too.

Using ubuntu 12.10

Revision history for this message
Phillip Susi (psusi) wrote :

Does taskset -c /bin/bash also hang for you?

Changed in util-linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Worik (worik-stanton) wrote : Re: [Bug 1198029] Re: taskset hangs

On 12/10/13 13:21, Phillip Susi wrote:
> Does taskset -c /bin/bash also hang for you?
>
>
> ** Changed in: util-linux (Ubuntu)
> Status: New => Incomplete
>
$ taskset -c /bin/bash
Usage: taskset [options] [mask | cpu-list] [pid|cmd [args...]]

Options:
 -a, --all-tasks operate on all the tasks (threads) for a given pid
 -p, --pid operate on existing given pid
 -c, --cpu-list display and specify cpus in list format
 -h, --help display this help
 -V, --version output version information

The default behavior is to run a new command:
    taskset 03 sshd -b 1024
You can retrieve the mask of an existing task:
    taskset -p 700
Or set it:
    taskset -p 03 700
List format uses a comma-separated list instead of a mask:
    taskset -pc 0,3,7-11 700
Ranges in list format can take a stride argument:
    e.g. 0-31:2 is equivalent to mask 0x55555555

For more information see taskset(1).

--
"As I went walking I saw a sign there And on the sign it said 'No
Trespassing' But on the other side it didn't say nothing, That side
was made for you and me" – Woody
       <email address hidden> 021-1680650, (03) 4821804

Revision history for this message
Phillip Susi (psusi) wrote :

Oops, I left off the 0 after the -c.

Revision history for this message
Worik (worik-stanton) wrote :

On 12/10/13 17:09, Phillip Susi wrote:
> Oops, I left off the 0 after the -c.
>
 $ taskset -c 0 /bin/bash

Does not hang

W

--
"As I went walking I saw a sign there And on the sign it said 'No
Trespassing' But on the other side it didn't say nothing, That side
was made for you and me" – Woody
       <email address hidden> 021-1680650, (03) 4821804

Revision history for this message
Phillip Susi (psusi) wrote :

But taskset -c 0 /usr/bin/mythtv-setup.real --syslog local7 does hang?

Revision history for this message
Worik (worik-stanton) wrote :

On 13/10/13 03:21, Phillip Susi wrote:
> But taskset -c 0 /usr/bin/mythtv-setup.real --syslog local7 does hang?

This is the install process of MythTV. I now have LinHES installed on
the computer in question. Given the nature of MythTV and the fact I
constantly use it I do not want to rerun the install script. SO I am
not sure I can be much help like that.

Did I fill in all the details about the machine? I cannot see tose
myself in the bug report, but I am not experienced with bug reports. I
can help you like that, I still have the machine and I can tell you its
specs.

I would question the wisdom of using 'taskset'. Does it need to have
its CPU affinity set like this? Had I been a (more) naive user unable
to pull the install script apart I would have been completely stumped.
It seems to me that using 'taskset' is a layer of complexity we do not need.

cheers
Worik

--
"As I went walking I saw a sign there And on the sign it said 'No
Trespassing' But on the other side it didn't say nothing, That side
was made for you and me" – Woody
       <email address hidden> 021-1680650, (03) 4821804

Revision history for this message
Phillip Susi (psusi) wrote :

I would agree, it seems rather pointless. Since the problem does not seem to be with taskset, I'm reassigning this to mythtv.

affects: util-linux (Ubuntu) → mythtv (Ubuntu)
Changed in mythtv (Ubuntu):
status: Incomplete → New
Revision history for this message
Mario Limonciello (superm1) wrote :

Taskset was added to prevent hangs during mythtv-setup preparing of channel scanning and adding cards. They weren't thread safe in the past. We'll have to investigate if it can actually be removed.

For now you can run mythtv-setup.real or comment out that taskset line to get you by.

Changed in mythtv (Ubuntu):
status: New → Triaged
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.