You are not logged in.

#1 2010-03-30 10:23:07

snack
Member
From: Italy
Registered: 2009-01-13
Posts: 861

[SOLVED] Error with taskset

I'm trying to assign a process to one core of my machine using taskset. But it gives me this error:

$ sudo taskset 0x00000001 -p 20145
Password: 
execvp: No such file or directory
failed to execute -p

What do I have to do to make it work?
Thanks

Last edited by snack (2010-03-31 15:14:47)

Offline

#2 2010-03-30 17:32:37

jimburnettva
Member
From: Virginia, USA
Registered: 2010-02-12
Posts: 48
Website

Re: [SOLVED] Error with taskset

Install GCC and an Assembler.

And this link:
http://www.google.com/search?hl=en&clie … tnG=Search


My Linux & Progamming Blog - Jimmy Burnett

Offline

#3 2010-03-30 18:09:45

snack
Member
From: Italy
Registered: 2009-01-13
Posts: 861

Re: [SOLVED] Error with taskset

I have GCC, but can't find assembler in repo. Maybe the package name is different? Here's what I get:

$ sudo pacman -Ss assembler
core/bin86 0.16.17-4 (base-devel)
    A complete 8086 assembler and loader
extra/hping 3.0.0-1
    hping is a command-line oriented TCP/IP packet assembler/analyzer.
extra/nasm 2.07-1
    80x86 assembler designed for portability and modularity

Offline

#4 2010-03-30 18:27:01

n0dix
Member
Registered: 2009-09-22
Posts: 956

Re: [SOLVED] Error with taskset

snack wrote:

I have GCC, but can't find assembler in repo. Maybe the package name is different? Here's what I get:

$ sudo pacman -Ss assembler
core/bin86 0.16.17-4 (base-devel)
    A complete 8086 assembler and loader
extra/hping 3.0.0-1
    hping is a command-line oriented TCP/IP packet assembler/analyzer.
extra/nasm 2.07-1
    80x86 assembler designed for portability and modularity

Did you try only installing gcc? I don't think Assembler brings something to the solution.

Offline

#5 2010-03-30 22:28:40

snack
Member
From: Italy
Registered: 2009-01-13
Posts: 861

Re: [SOLVED] Error with taskset

I think that GCC is actually on my system:

$ pacman -Qs gcc
local/gcc 4.4.3-2 (base-devel)
    The GNU Compiler Collection
local/gcc-fortran 4.4.3-2
    Fortran front-end for GCC
local/gcc-libs 4.4.3-2 (base)
    Runtime libraries shipped by GCC for C and C++ languages
local/gcc34 3.4.6-2
    The GNU Compiler Collection

Offline

#6 2010-03-30 22:43:57

n0dix
Member
Registered: 2009-09-22
Posts: 956

Re: [SOLVED] Error with taskset

Install the package gcc-libs.

Offline

#7 2010-03-31 07:25:23

snack
Member
From: Italy
Registered: 2009-01-13
Posts: 861

Re: [SOLVED] Error with taskset

n0dix wrote:

Install the package gcc-libs.

It's already there:

$ pacman -Qs gcc-libs
local/gcc-libs 4.4.3-2 (base)
    Runtime libraries shipped by GCC for C and C++ languages

Offline

#8 2010-03-31 15:10:31

n0dix
Member
Registered: 2009-09-22
Posts: 956

Re: [SOLVED] Error with taskset

The problem you get is about the use of arguments.
See this link.

Offline

#9 2010-03-31 15:14:28

snack
Member
From: Italy
Registered: 2009-01-13
Posts: 861

Re: [SOLVED] Error with taskset

n0dix wrote:

The problem you get is about the use of arguments.
See this link.

Perfect, it solved the problem. Many thanks n0dix, it was not simple for me because the web is full of pages reporting the wrong syntax.

Offline

Board footer

Powered by FluxBB