[d-kernel] Доступ к /proc/stat

Alexei V. Mezin mezin at ntmdt.ru
Thu Apr 22 11:12:24 MSD 2004


Hello ,

  После апгрейда до 2.6.4-std26-smp-alt4 получил вот такое:

  strace xosview замирает, последние строки вывода:

open("/proc/memstat", O_RDONLY)         = -1 ENOENT (No such file or
directory)
open("/proc/meminfo", O_RDONLY)         = 4
fstat64(4, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 
0) = 0x400ea000
read(4, "MemTotal:       385864 kB\nMemFre"..., 8192) = 644
read(4, "", 7168)                       = 0
read(4, "", 8192)                       = 0
close(4)                                = 0
munmap(0x400ea000, 4096)                = 0
gettimeofday({1082577124, 372909}, NULL) = 0
open("/proc/stat", O_RDONLY)            = 4
fstat64(4, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 
0) = 0x400ea000
read(4, "cpu  346144 0 26187 2302977 1997"..., 8192) = 722
read(4, "", 7168)                       = 0
read(4, "", 8192)                       = 0  


  strace wmSMPmon завершается так:

read(3, "\25\0\206\0\5\0\340\3\5\0\340\3W\24@\0\0\0\0\0\0SD\10("..., 32)
= 32
write(3, ">\2\7\0\1\0\340\3\6\0\340\3\7\0\340\3\0\0\0\0\0\0\0\0t"..., 
28) = 28
ioctl(3, FIONREAD, [32])                = 0
read(3, "\226t\206\0\5\0\340\3\5\0\340\3V\24@\0\0\0\26\0@\0@\0\1"..., 
32) = 32
write(3, ">\2\7\0\1\0\340\3\5\0\340\3\7\0\340\3\0\0\0\0\0\0\0\0t"..., 
28) = 28
nanosleep({0, 125000000}, NULL)         = 0
open("/proc/stat", O_RDONLY)            = 4
read(4, "cpu  354709 0 27275 2447268 2022"..., 128) = 128
close(4)                                = 0
open("/proc/meminfo", O_RDONLY)         = 4
read(4, "MemTotal:       385864 kB\nMemFre"..., 192) = 192
close(4)                                = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++

При этом доступ к /proc/stat есть:

[alexei at localhost art]$ cat /proc/stat
cpu  355057 0 27331 2454550 20225 16237 3996
cpu0 189208 0 14830 1204673 9842 16237 3862
cpu1 165848 0 12500 1249876 10382 0 133
intr 21154260 14386354 15411 0 1 116565 0 0 0 3353021 0 0 219770 335856 
0 18910 0 1368069 406195 217272 716836 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
0 0 0 0 0 0 0
ctxt 35266157
btime 1082563554
processes 5446
procs_running 1
procs_blocked 0


Отчего так? Хотелось бы работающий xosview. Или дело не в /proc?

P.S. Прошу прощения за дублирующий вопрос, но в sisyphus@ не ответили.
Да и проблема вылезла (вроде как) после смены ядра.




-- 
Best regards,
 Alexei V. Mezin                          mailto:mezin at ntmdt.ru



More information about the devel-kernel mailing list