[Devel] PPC64 fairsched_chwt: No such file or directory

Christian Kaiser2 CKAISER2 at de.ibm.com
Fri May 25 00:15:25 PDT 2007


Kir Kolyshkin <kir at openvz.org> wrote on 05/24/2007 05:10:54 PM:

> Can you check the value of __NR_fairsched_chwt in vzctl? It is defined
> in include/vzsyscalls.h depending on your architecture. For ppc it
> should be 402 (same as in kernel's include/asm-powerpc/unistd.h). In
> case these numbers are different things will go wrong.

I checked on that. The same value 402 defined in both header-files.

> You can easily check it the number using strace, like this:
> # strace vzctl set 0 --cpuunits 1000 2>&1 | grep syscall

[root at s10b10-0 ~]# strace vzctl set 0 --cpuunits 1000 2>&1 | grep syscall

no output and without the grep pipe:

[root at s10b10-0 ~]# strace vzctl set 0 --cpuunits 1000
execve("/usr/local/sbin/vzctl", ["vzctl", "set", "0", "--cpuunits",
"1000"], [/* 22 vars */]) = 0
brk(0)                                  = 0x1001a000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0
access(umovestr: Input/output error
0x58596cc0, R_OK)                = -1 ENOENT (No such file or directory)
open(umovestr: Input/output error
0xffd6c380, O_RDONLY)              = -1 ENOENT (No such file or directory)
stat(umovestr: Input/output error
0xffd6c380, 0xffd6c3d0)            = -1 ENOENT (No such file or directory)
open(umovestr: Input/output error
0xffd6c380, O_RDONLY)              = -1 ENOENT (No such file or directory)
stat(umovestr: Input/output error
0xffd6c380, 0xffd6c3d0)            = -1 ENOENT (No such file or directory)
open(umovestr: Input/output error
0xffd6c380, O_RDONLY)              = -1 ENOENT (No such file or directory)
stat(umovestr: Input/output error
0xffd6c380, 0xffd6c3d0)            = -1 ENOENT (No such file or directory)
open(umovestr: Input/output error
0xffd6c380, O_RDONLY)              = -1 ENOENT (No such file or directory)
stat(umovestr: Input/output error
0xffd6c380, 0xffd6c3d0)            = -1 ENOENT (No such file or directory)
open(umovestr: Input/output error
0xffd6c380, O_RDONLY)              = -1 ENOENT (No such file or directory)
stat(umovestr: Input/output error
0xffd6c380, 0xffd6c3d0)            = -1 ENOENT (No such file or directory)
open(umovestr: Input/output error
0xffd6c380, O_RDONLY)              = -1 ENOENT (No such file or directory)
stat(umovestr: Input/output error
0xffd6c380, 0xffd6c3d0)            = -1 ENOENT (No such file or directory)
open(umovestr: Input/output error
0xffd6c380, O_RDONLY)              = -1 ENOENT (No such file or directory)
stat(umovestr: Input/output error
0xffd6c380, 0xffd6c3d0)            = -1 ENOENT (No such file or directory)
open(umovestr: Input/output error
0xffd6c380, O_RDONLY)              = 3
read(3, ptrace: umoven: Input/output error
0xffd6c5a8, 832)                = 832
fstat(3, ptrace: umoven: Input/output error
{...})                         = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x1000
mmap(NULL, 218136, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0x2000
mprotect(0x31000, 4096, PROT_NONE)      = 0
mmap(0x32000, 16384, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x30000) = 0x32000
mmap(0x36000, 5144, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x36000
close(3)                                = 0
open(umovestr: Input/output error
0xffd6c360, O_RDONLY)              = -1 ENOENT (No such file or directory)
open(umovestr: Input/output error
0x58597378, O_RDONLY)              = 3
fstat(3, ptrace: umoven: Input/output error
{...})                         = 0
mmap(NULL, 36337, PROT_READ, MAP_PRIVATE, 3, 0) = 0x38000
close(3)                                = 0
open(umovestr: Input/output error
0x3f9a5, O_RDONLY)                 = 3
read(3, ptrace: umoven: Input/output error
0xffd6c578, 832)                = 832
fstat(3, ptrace: umoven: Input/output error
{...})                         = 0
mmap(0x58770000, 132584, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0x58770000
mprotect(0x58774000, 110592, PROT_NONE) = 0
mmap(0x5878f000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xf000) = 0x5878f000
close(3)                                = 0
open(umovestr: Input/output error
0xffd6c330, O_RDONLY)              = -1 ENOENT (No such file or directory)
open(umovestr: Input/output error
0x3c652, O_RDONLY)                 = 3
read(3, ptrace: umoven: Input/output error
0xffd6c548, 832)                = 832
fstat(3, ptrace: umoven: Input/output error
{...})                         = 0
mmap(0x58900000, 132280, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0x58900000
mprotect(0x58903000, 114688, PROT_NONE) = 0
mmap(0x5891f000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xf000) = 0x5891f000
close(3)                                = 0
open(umovestr: Input/output error
0xffd6c300, O_RDONLY)              = -1 ENOENT (No such file or directory)
open(umovestr: Input/output error
0x401a1, O_RDONLY)                 = 3
read(3, ptrace: umoven: Input/output error
0xffd6c518, 832)                = 832
fstat(3, ptrace: umoven: Input/output error
{...})                         = 0
mmap(0x585c0000, 1717776, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
3, 0) = 0x585c0000
mprotect(0x5873f000, 53248, PROT_NONE)  = 0
mmap(0x5874c000, 81920, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x18c000) = 0x5874c000
mmap(0x58760000, 13840, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x58760000
close(3)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x41000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x42000
mprotect(0x5874c000, 16384, PROT_READ)  = 0
mprotect(0x5891f000, 4096, PROT_READ)   = 0
mprotect(0x5878f000, 4096, PROT_READ)   = 0
mprotect(0x585af000, 4096, PROT_READ)   = 0
munmap(0x38000, 36337)                  = 0
brk(0)                                  = 0x1001a000
brk(0x1003b000)                         = 0x1003b000
rt_sigaction(SIGPIPE, ptrace: umoven: Input/output error
{...}, NULL, 8)   = 0
open("/usr/local/lib/vzctl/modules/",
O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3
fstat(3, ptrace: umoven: Input/output error
{...})                         = 0
fcntl(3, F_SETFD, FD_CLOEXEC)           = 0
getdents(3, /* d_reclen == 0, problem here *//* 0 entries */, 4096) = 48
stat(umovestr: Input/output error
0xffd6d120, ptrace: umoven: Input/output error
{...})                 = 0
stat(umovestr: Input/output error
0xffd6d120, ptrace: umoven: Input/output error
{...})                 = 0
getdents(3, /* 0 entries */, 4096)      = 0
close(3)                                = 0
open("/usr/local/etc/vz/vz.conf", O_RDONLY) = 3
stat("/usr/local/etc/vz/vz.conf", ptrace: umoven: Input/output error
{...}) = 0
fstat(3, ptrace: umoven: Input/output error
{...})                         = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x38000
read(3, ptrace: umoven: Input/output error
0x38000, 4096)                  = 709
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x38000, 4096)                   = 0
open("/var/log/vzctl.log", O_WRONLY|O_APPEND|O_CREAT, 0666) = 3
fstat(3, ptrace: umoven: Input/output error
{...})                         = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x38000
fstat(3, ptrace: umoven: Input/output error
{...})                         = 0
lseek(3, 8142, SEEK_SET)                = 8142
stat(umovestr: Input/output error
0xffd6d370, ptrace: umoven: Input/output error
{...})                 = 0
open(umovestr: Input/output error
0xffd6d370, O_RDONLY)              = 4
stat(umovestr: Input/output error
0xffd6d370, ptrace: umoven: Input/output error
{...})                 = 0
fstat(4, ptrace: umoven: Input/output error
{...})                         = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x39000
read(4, ptrace: umoven: Input/output error
0x39000, 4096)                  = 228
read(4, "", 4096)                       = 0
close(4)                                = 0
munmap(0x39000, 4096)                   = 0
fcntl(0, F_GETFL)                       = 0x2 (flags O_RDWR)
fcntl(1, F_GETFL)                       = 0x2 (flags O_RDWR)
fcntl(2, F_GETFL)                       = 0x2 (flags O_RDWR)
open(umovestr: Input/output error
0x2e380, O_RDWR)                   = 4
ioctl(4, 0x800c2e05, 0xffd6cbf0)        = 0
stat("/vz/lock", ptrace: umoven: Input/output error
{...})                 = 0
getpid()                                = 29239
open(umovestr: Input/output error
0xffd6c868, O_RDWR|O_CREAT|O_EXCL, 0600) = 5
write(5, ptrace: umoven: Input/output error
0xffd6c468, 7)                 = 7
close(5)                                = 0
link(umovestr: Input/output error
0xffd6c868, umovestr: Input/output error
0xffd6c668)            = 0
unlink(umovestr: Input/output error
0xffd6c868)                      = 0
rt_sigaction(SIGINT, ptrace: umoven: Input/output error
{...}, NULL, 8)    = 0
fstat(1, ptrace: umoven: Input/output error
{...})                         = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x39000
write(1, ptrace: umoven: Input/output error
0x39000, 24Setting CPU units: 1000
)                   = 24
time(NULL)                              = 1182235377
open(umovestr: Input/output error
0x5872fa78, O_RDONLY)              = 5
fstat(5, ptrace: umoven: Input/output error
{...})                         = 0
fstat(5, ptrace: umoven: Input/output error
{...})                         = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x3a000
read(5, ptrace: umoven: Input/output error
0x3a000, 4096)                  = 837
close(5)                                = 0
munmap(0x3a000, 4096)                   = 0
stat(umovestr: Input/output error
0x5872fa78, ptrace: umoven: Input/output error
{...})                 = 0
stat(umovestr: Input/output error
0x5872fa78, ptrace: umoven: Input/output error
{...})                 = 0
stat(umovestr: Input/output error
0x5872fa78, ptrace: umoven: Input/output error
{...})                 = 0
write(3, ptrace: umoven: Input/output error
0x38000, 57)                   = 57
bind(2147483647, ptrace: umoven: Input/output error
{...}, 0)              = -1 ENOENT (No such file or directory)
write(2, ptrace: umoven: Input/output error
0xffd6a428, 14fairsched_chwt)                = 14
write(2, ptrace: umoven: Input/output error
0xffd6a3a8, 27: No such file or directory)                = 27
write(2, ptrace: umoven: Input/output error
0x58750803, 1
)                 = 1
time(NULL)                              = 1182235377
stat(umovestr: Input/output error
0x5872fa78, ptrace: umoven: Input/output error
{...})                 = 0
stat(umovestr: Input/output error
0x5872fa78, ptrace: umoven: Input/output error
{...})                 = 0
stat(umovestr: Input/output error
0x5872fa78, ptrace: umoven: Input/output error
{...})                 = 0
write(3, ptrace: umoven: Input/output error
0x38000, 75)                   = 75
write(1, ptrace: umoven: Input/output error
0x39000, 105WARNING: Settings were not saved and will be resetted to
original values on next start (use --save flag)
)                  = 105
time(NULL)                              = 1182235377
stat(umovestr: Input/output error
0x5872fa78, ptrace: umoven: Input/output error
{...})                 = 0
stat(umovestr: Input/output error
0x5872fa78, ptrace: umoven: Input/output error
{...})                 = 0
stat(umovestr: Input/output error
0x5872fa78, ptrace: umoven: Input/output error
{...})                 = 0
write(3, ptrace: umoven: Input/output error
0x38000, 138)                  = 138
unlink(umovestr: Input/output error
0xffd6ca90)                      = 0
close(4)                                = 0
close(3)                                = 0
munmap(0x38000, 4096)                   = 0
exit_group(2)                           = ?
Process 29239 detached
[root at s10b10-0 ~]#

> Christian Kaiser2 wrote:
> > Hi all,
> >
> > as I mentioned already yesterday I get this error when I try to start
the
> > OpenVZ service:
> >
> > [root at s10b10-0 ~]# /etc/init.d/vz start
> > Starting OpenVZ:                                           [  OK  ]
> > Bringing up interface venet0:                              [  OK  ]
> > Configuring interface venet0:                              [  OK  ]
> > vzctl set 0 --cpuunits 1000 failed: Setting CPU units: 1000
> > fairsched_chwt: No such file or directory
> > WARNING: Settings were not saved and will be resetted to
or[FAILED]alues on
> > next start (use --save flag)
> >
> > I tried the latest kernels 2.6.18 and 2.6.20 with CONFIG_SCHED_VCPU=y
and
> > CONFIG_FAIRSCHED=y
> > For both kernels the vzctl command ends up with the same error.
> >
> > Can someone explain me why it is searching for a file or directory? Is
> > fairsched_chwt a device?

Mit freundlichen Grüßen / Best Regards
Christian Kaiser
--
IBM Deutschland Entwicklung GmbH
Open Systems Firmware Development
mail: ckaiser2 at de.ibm.com

IBM Deutschland Entwicklung GmbH
Vorsitzender des Aufsichtsrats: Martin Jetter
Geschäftsführung: Herbert Kircher
Sitz der Gesellschaft: Böblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294





More information about the Devel mailing list