LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 07-09-2008, 03:28 AM   #1
rahulthewall3000
Member
 
Registered: Jan 2008
Location: Bremen
Distribution: Gentoo
Posts: 33

Rep: Reputation: 15
top command hangs


I am in the process of configuring a ramdisk to boot Linux on an Arm Platform. I am using busybox and busybox-links. The command top is provided by busybox-links as a symlink. Now, whenever I use the command my terminal just hangs. I can do nothing. not even Ctrl-C. If anyone could tell me what might be the problem here, it would be really helpful.

Thanks
Rahul
 
Old 07-09-2008, 08:24 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Running out of memory?

Use strace to call top and see what is happening.
Code:
strace top
 
Old 07-10-2008, 03:59 AM   #3
rahulthewall3000
Member
 
Registered: Jan 2008
Location: Bremen
Distribution: Gentoo
Posts: 33

Original Poster
Rep: Reputation: 15
Code:
# strace top
execve("/usr/bin/top", ["top"], [/* 7 vars */]) = 0
brk(0) = 0xa1000
uname({sys="Linux", node="10.0.2.15", ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001c000
access("/etc/ld.so.preload", R_OK)= -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/tls/v5l/fast-mult/half/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/v5l/fast-mult/half", 0xbee052c8) = -1 ENOENT (No such file or directory)
open("/lib/tls/v5l/fast-mult/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/v5l/fast-mult", 0xbee052c8) = -1 ENOENT (No such file or directory)
open("/lib/tls/v5l/half/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/v5l/half", 0xbee052c8) = -1 ENOENT (No such file or directory)
open("/lib/tls/v5l/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/v5l", 0xbee052c8)= -1 ENOENT (No such file or directory)
open("/lib/tls/fast-mult/half/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/fast-mult/half", 0xbee052c8) = -1 ENOENT (No such file or directory)
open("/lib/tls/fast-mult/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/fast-mult", 0xbee052c8) = -1 ENOENT (No such file or directory)
open("/lib/tls/half/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/half", 0xbee052c8)     = -1 ENOENT (No such file or directory)
open("/lib/tls/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls", 0xbee052c8)    = -1 ENOENT (No such file or directory)
open("/lib/v5l/fast-mult/half/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/v5l/fast-mult/half", 0xbee052c8) = -1 ENOENT (No such file or directory)
open("/lib/v5l/fast-mult/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/v5l/fast-mult", 0xbee052c8) = -1 ENOENT (No such file or directory)
open("/lib/v5l/half/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/v5l/half", 0xbee052c8)     = -1 ENOENT (No such file or directory)
open("/lib/v5l/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/v5l", 0xbee052c8)    = -1 ENOENT (No such file or directory)
open("/lib/fast-mult/half/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/fast-mult/half", 0xbee052c8) = -1 ENOENT (No such file or directory)
open("/lib/fast-mult/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/fast-mult", 0xbee052c8)    = -1 ENOENT (No such file or directory)
open("/lib/half/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/half", 0xbee052c8)   = -1 ENOENT (No such file or directory)
open("/lib/libcrypt.so.1", O_RDONLY)    = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0004\6\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=46160, ...}) = 0
mmap2(NULL, 213276, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40026000
mprotect(0x4002b000, 28672, PROT_NONE)  = 0
mmap2(0x40032000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4) = 0x40032000
mmap2(0x40034000, 155932, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40034000
close(3)  = 0
open("/lib/libm.so.6", O_RDONLY)  = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\2001\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=665376, ...}) = 0
mmap2(NULL, 696480, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x4005b000
mprotect(0x400fc000, 32768, PROT_NONE)  = 0
mmap2(0x40104000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xa1) = 0x40104000
close(3)  = 0
open("/lib/libgcc_s.so.1", O_RDONLY)    = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\10\"\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0744, st_size=49044, ...}) = 0
mmap2(NULL, 74512, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40106000
mprotect(0x40111000, 28672, PROT_NONE)  = 0
mmap2(0x40118000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xa) = 0x40118000
close(3)  = 0
open("/lib/libc.so.6", O_RDONLY)  = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\260K\1\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1112036, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001d000
mmap2(NULL, 1147360, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40119000
mprotect(0x40224000, 32768, PROT_NONE)  = 0
mmap2(0x4022c000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x10b) = 0x4022c000
mmap2(0x4022f000, 8672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4022f000
close(3)  = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001e000
syscall_983045(0x4001da60, 0x4001da60, 0x67c, 0x4001e138, 0x40025050, 0x40025000, 0, 0xf0005, 0x50, 0xffff4f60, 0, 0xbee05b9c, 0, 0xbee05888, 0x40011438, 0x40001f9c, 0x20000010, 0x4001da60, 0xc2e0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) = 0
mprotect(0x4022c000, 8192, PROT_READ)   = 0
mprotect(0x40104000, 4096, PROT_READ)   = 0
mprotect(0x40032000, 4096, PROT_READ)   = 0
mprotect(0x40024000, 4096, PROT_READ)   = 0
getpid()  = 274
stat64("/etc/busybox.conf", 0xbee05cb0) = -1 ENOENT (No such file or directory)
getuid32()= 0
getgid32()= 0
setgid32(0)     = 0
setuid32(0)     = 0
chdir("/proc")  = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
rt_sigaction(SIGTERM, {0x53bf0, [TERM], SA_RESTART|0x4000000}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGINT, {0x53bf0, [INT], SA_RESTART|0x4000000}, {SIG_DFL}, 8) = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(0, SNDCTL_TMR_START or TCSETS, {B38400 opost -isig -icanon -echo ...}) = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost -isig -icanon -echo ...}) = 0
ioctl(0, TIOCGWINSZ, {ws_row=0, ws_col=0, ws_xpixel=0, ws_ypixel=0}) = 0
open("/proc", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3
fstat64(3, {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC)   = 0
brk(0)    = 0xa1000
brk(0xc4000)    = 0xc4000
getdents64(3, /* 68 entries */, 8192)   = 1856
stat64("/proc/1", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
socket(PF_FILE, SOCK_STREAM, 0)   = 4
fcntl64(4, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
connect(4, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(4)  = 0
socket(PF_FILE, SOCK_STREAM, 0)   = 4
fcntl64(4, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
connect(4, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(4)  = 0
open("/etc/nsswitch.conf", O_RDONLY)    = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=452, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001f000
read(4, "# /etc/nsswitch.conf\n#\n# Example"..., 4096) = 452
read(4, "", 4096)     = 0
close(4)  = 0
munmap(0x4001f000, 4096)    = 0
open("/lib/libnss_files.so.2", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\370\27\0"..., 512) = 512
fstat64(4, {st_mode=S_IFREG|0644, st_size=129212, ...}) = 0
mmap2(NULL, 70324, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0x40232000
mprotect(0x4023b000, 28672, PROT_NONE)  = 0
mmap2(0x40242000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x8) = 0x40242000
close(4)  = 0
mprotect(0x40242000, 4096, PROT_READ)   = 0
open("/etc/passwd", O_RDONLY)     = 4
fcntl64(4, F_GETFD)   = 0
fcntl64(4, F_SETFD, FD_CLOEXEC)   = 0
fstat64(4, {st_mode=S_IFREG|0644, st_size=884, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001f000
read(4, "root::0:0:root:/root:/bin/bash\nb"..., 4096) = 884
close(4)  = 0
munmap(0x4001f000, 4096)    = 0
open("/proc/1/stat", O_RDONLY|O_LARGEFILE) = 4
read(4, "1 (init) S 0 1 1 0 -1 4194560 16"..., 1023) = 182
close(4)  = 0
open("/etc/passwd", O_RDONLY)     = 4
fcntl64(4, F_GETFD)   = 0
fcntl64(4, F_SETFD, FD_CLOEXEC)   = 0
fstat64(4, {st_mode=S_IFREG|0644, st_size=884, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001f000
read(4, "root::0:0:root:/root:/bin/bash\nb"..., 4096) = 884
close(4)  = 0
munmap(0x4001f000, 4096)    = 0
open("/proc/2/stat", O_RDONLY|O_LARGEFILE) = 4
read(4, "2 (posix_cpu_timer) S 1 1 1 0 -1"..., 1023) = 138
close(4)  = 0
stat64("/proc/3", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
open("/etc/passwd", O_RDONLY)     = 4
fcntl64(4, F_GETFD)   = 0
fcntl64(4, F_SETFD, FD_CLOEXEC)   = 0
fstat64(4, {st_mode=S_IFREG|0644, st_size=884, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001f000
read(4, "root::0:0:root:/root:/bin/bash\nb"..., 4096) = 884
close(4)  = 0
munmap(0x4001f000, 4096)    = 0
open("/proc/3/stat", O_RDONLY|O_LARGEFILE) = 4
read(4, "3 (softirq-high/0) S 1 1 1 0 -1 "..., 1023) = 141
close(4)  = 0
stat64("/proc/4", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
open("/etc/passwd", O_RDONLY)     = 4
fcntl64(4, F_GETFD)   = 0
fcntl64(4, F_SETFD, FD_CLOEXEC)   = 0
fstat64(4, {st_mode=S_IFREG|0644, st_size=884, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001f000
read(4, "root::0:0:root:/root:/bin/bash\nb"..., 4096) = 884
close(4)  = 0
munmap(0x4001f000, 4096)    = 0
open("/proc/4/stat", O_RDONLY|O_LARGEFILE) = 4
read(4, "4 (softirq-timer/0) S 1 1 1 0 -1"..., 1023) = 143
close(4)  = 0
stat64("/proc/5", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
open("/etc/passwd", O_RDONLY)     = 4
fcntl64(4, F_GETFD)   = 0
fcntl64(4, F_SETFD, FD_CLOEXEC)   = 0
fstat64(4, {st_mode=S_IFREG|0644, st_size=884, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001f000
read(4, "root::0:0:root:/root:/bin/bash\nb"..., 4096) = 884
close(4)  = 0
munmap(0x4001f000, 4096)    = 0
open("/proc/5/stat", O_RDONLY|O_LARGEFILE) = 4
read(4, "5 (softirq-net-tx/) S 1 1 1 0 -1"..., 1023) = 142
close(4)  = 0
stat64("/proc/6", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
open("/etc/passwd", O_RDONLY)     = 4
fcntl64(4, F_GETFD)   = 0
fcntl64(4, F_SETFD, FD_CLOEXEC)   = 0
fstat64(4, {st_mode=S_IFREG|0644, st_size=884, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001f000
read(4, "root::0:0:root:/root:/bin/bash\nb"..., 4096) = 884
close(4)  = 0
munmap(0x4001f000, 4096)    = 0
open("/proc/6/stat", O_RDONLY|O_LARGEFILE) = 4
read(4, "6 (softirq-net-rx/) S 1 1 1 0 -1"..., 1023) = 142
close(4)  = 0
stat64("/proc/7", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
open("/etc/passwd", O_RDONLY)     = 4
fcntl64(4, F_GETFD)   = 0
fcntl64(4, F_SETFD, FD_CLOEXEC)   = 0
fstat64(4, {st_mode=S_IFREG|0644, st_size=884, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001f000
read(4, "root::0:0:root:/root:/bin/bash\nb"..., 4096) = 884
close(4)  = 0
munmap(0x4001f000, 4096)    = 0
open("/proc/7/stat", O_RDONLY|O_LARGEFILE) = 4
read(4, "7 (softirq-block/0) S 1 1 1 0 -1"..., 1023) = 142
close(4)  = 0
stat64("/proc/8", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
open("/etc/passwd", O_RDONLY)     = 4
fcntl64(4, F_GETFD)   = 0
fcntl64(4, F_SETFD, FD_CLOEXEC)   = 0
fstat64(4, {st_mode=S_IFREG|0644, st_size=884, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001f000
read(4, "root::0:0:root:/root:/bin/bash\nb"..., 4096) = 884
close(4)  = 0
munmap(0x4001f000, 4096)    = 0
open("/proc/8/stat", O_RDONLY|O_LARGEFILE) = 4
read(4, "8 (softirq-tasklet) S 1 1 1 0 -1"..., 1023) = 143
close(4)  = 0
stat64("/proc/9", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
open("/etc/passwd", O_RDONLY)     = 4
fcntl64(4, F_GETFD)   = 0
fcntl64(4, F_SETFD, FD_CLOEXEC)   = 0
fstat64(4, {st_mode=S_IFREG|0644, st_size=884, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001f000
read(4, "root::0:0:root:/root:/bin/bash\nb"..., 4096) = 884
close(4)  = 0
munmap(0x4001f000, 4096)    = 0
open("/proc/9/stat", O_RDONLY|O_LARGEFILE) = 4
read(4, "9 (softirq-rcu/0) S 1 1 1 0 -1 1"..., 1023) = 141
close(4)  = 0
stat64("/proc/10", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
open("/etc/passwd", O_RDONLY)     = 4
fcntl64(4, F_GETFD)   = 0
fcntl64(4, F_SETFD, FD_CLOEXEC)   = 0
fstat64(4, {st_mode=S_IFREG|0644, st_size=884, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001f000
read(4, "root::0:0:root:/root:/bin/bash\nb"..., 4096) = 884
close(4)  = 0
munmap(0x4001f000, 4096)    = 0
open("/proc/10/stat", O_RDONLY|O_LARGEFILE) = 4
read(4, "10 (watchdog/0) S 1 1 1 0 -1 330"..., 1023) = 135
close(4)  = 0
stat64("/proc/11", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
open("/etc/passwd", O_RDONLY)     = 4
fcntl64(4, F_GETFD)   = 0
fcntl64(4, F_SETFD, FD_CLOEXEC)   = 0
fstat64(4, {st_mode=S_IFREG|0644, st_size=884, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001f000
read(4, "root::0:0:root:/root:/bin/bash\nb"..., 4096) = 884
close(4)  = 0
munmap(0x4001f000, 4096)    = 0
open("/proc/11/stat", O_RDONLY|O_LARGEFILE) = 4
read(4, "11 (desched/0) S 1 1 1 0 -1 1073"..., 1023) = 138
close(4)  = 0
stat64("/proc/12", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
open("/etc/passwd", O_RDONLY)     = 4
fcntl64(4, F_GETFD)   = 0
fcntl64(4, F_SETFD, FD_CLOEXEC)   = 0
fstat64(4, {st_mode=S_IFREG|0644, st_size=884, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001f000
read(4, "root::0:0:root:/root:/bin/bash\nb"..., 4096) = 884
close(4)  = 0
munmap(0x4001f000, 4096)    = 0
open("/proc/12/stat", O_RDONLY|O_LARGEFILE) = 4
read(4, "12 (events/0) S 1 1 1 0 -1 32832"..., 1023) = 135
close(4)  = 0
stat64("/proc/13", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
open("/etc/passwd", O_RDONLY)     = 4
fcntl64(4, F_GETFD)   = 0
fcntl64(4, F_SETFD, FD_CLOEXEC)   = 0
fstat64(4, {st_mode=S_IFREG|0644, st_size=884, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001f000
read(4, "root::0:0:root:/root:/bin/bash\nb"..., 4096) = 884
close(4)  = 0
munmap(0x4001f000, 4096)    = 0
open("/proc/13/stat", O_RDONLY|O_LARGEFILE) = 4
read(4, "13 (khelper) S 1 1 1 0 -1 32832 "..., 1023) = 136
close(4)  = 0
stat64("/proc/14", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
open("/etc/passwd", O_RDONLY)     = 4
fcntl64(4, F_GETFD)   = 0
fcntl64(4, F_SETFD, FD_CLOEXEC)   = 0
fstat64(4, {st_mode=S_IFREG|0644, st_size=884, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001f000
read(4, "root::0:0:root:/root:/bin/bash\nb"..., 4096) = 884
close(4)  = 0
munmap(0x4001f000, 4096)    = 0
open("/proc/14/stat", O_RDONLY|O_LARGEFILE) = 4
read(4, "14 (kthread) S 1 1 1 0 -1 32832 "..., 1023) = 134
close(4)  = 0
stat64("/proc/21", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
open("/etc/passwd", O_RDONLY)     = 4
fcntl64(4, F_GETFD)   = 0
fcntl64(4, F_SETFD, FD_CLOEXEC)   = 0
fstat64(4, {st_mode=S_IFREG|0644, st_size=884, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001f000
read(4, "root::0:0:root:/root:/bin/bash\nb"..., 4096) = 884
close(4)  = 0
munmap(0x4001f000, 4096)    = 0
open("/proc/21/stat", O_RDONLY|O_LARGEFILE) = 4
read(4, "21 (kblockd/0) S 14 1 1 0 -1 328"..., 1023) = 138
close(4)  = 0
stat64("/proc/42", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
open("/etc/passwd", O_RDONLY)     = 4
fcntl64(4, F_GETFD)   = 0
fcntl64(4, F_SETFD, FD_CLOEXEC)   = 0
fstat64(4, {st_mode=S_IFREG|0644, st_size=884, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001f000
read(4, "root::0:0:root:/root:/bin/bash\nb"..., 4096) = 884
close(4)  = 0
munmap(0x4001f000, 4096)    = 0
open("/proc/42/stat", O_RDONLY|O_LARGEFILE) = 4
read(4, "42 (pdflush) S 14 1 1 0 -1 83927"..., 1023) = 136
close(4)  = 0
stat64("/proc/43", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
open("/etc/passwd", O_RDONLY)     = 4
fcntl64(4, F_GETFD)   = 0
fcntl64(4, F_SETFD, FD_CLOEXEC)   = 0
fstat64(4, {st_mode=S_IFREG|0644, st_size=884, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001f000
read(4, "root::0:0:root:/root:/bin/bash\nb"..., 4096) = 884
close(4)  = 0
munmap(0x4001f000, 4096)    = 0
open("/proc/43/stat", O_RDONLY|O_LARGEFILE) = 4
read(4, "43 (pdflush) S 14 1 1 0 -1 83927"..., 1023) = 138
close(4)  = 0
stat64("/proc/44", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
open("/etc/passwd", O_RDONLY)     = 4
fcntl64(4, F_GETFD)   = 0
fcntl64(4, F_SETFD, FD_CLOEXEC)   = 0
fstat64(4, {st_mode=S_IFREG|0644, st_size=884, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001f000
read(4, "root::0:0:root:/root:/bin/bash\nb"..., 4096) = 884
close(4)  = 0
munmap(0x4001f000, 4096)    = 0
open("/proc/44/stat", O_RDONLY|O_LARGEFILE) = 4
read(4, "44 (kswapd0) S 14 1 1 0 -1 86528"..., 1023) = 137
close(4)  = 0
stat64("/proc/45", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
open("/etc/passwd", O_RDONLY)     = 4
fcntl64(4, F_GETFD)   = 0
fcntl64(4, F_SETFD, FD_CLOEXEC)   = 0
fstat64(4, {st_mode=S_IFREG|0644, st_size=884, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001f000
read(4, "root::0:0:root:/root:/bin/bash\nb"..., 4096) = 884
close(4)  = 0
munmap(0x4001f000, 4096)    = 0
open("/proc/45/stat", O_RDONLY|O_LARGEFILE) = 4
read(4, "45 (aio/0) S 14 1 1 0 -1 32832 0"..., 1023) = 133
close(4)  = 0
stat64("/proc/146", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
open("/etc/passwd", O_RDONLY)     = 4
fcntl64(4, F_GETFD)   = 0
fcntl64(4, F_SETFD, FD_CLOEXEC)   = 0
fstat64(4, {st_mode=S_IFREG|0644, st_size=884, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001f000
read(4, "root::0:0:root:/root:/bin/bash\nb"..., 4096) = 884
close(4)  = 0
munmap(0x4001f000, 4096)    = 0
open("/proc/146/stat", O_RDONLY|O_LARGEFILE) = 4
read(4, "146 (IRQ 25) S 14 1 1 0 -1 21475"..., 1023) = 142
close(4)  = 0
stat64("/proc/148", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
open("/etc/passwd", O_RDONLY)     = 4
fcntl64(4, F_GETFD)   = 0
fcntl64(4, F_SETFD, FD_CLOEXEC)   = 0
fstat64(4, {st_mode=S_IFREG|0644, st_size=884, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001f000
read(4, "root::0:0:root:/root:/bin/bash\nb"..., 4096) = 884
close(4)  = 0
munmap(0x4001f000, 4096)    = 0
open("/proc/148/stat", O_RDONLY|O_LARGEFILE) = 4
read(4, "148 (mtdblockd) S 1 1 1 0 -1 348"..., 1023) = 134
close(4)  = 0
stat64("/proc/152", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
open("/etc/passwd", O_RDONLY)     = 4
fcntl64(4, F_GETFD)   = 0
fcntl64(4, F_SETFD, FD_CLOEXEC)   = 0
fstat64(4, {st_mode=S_IFREG|0644, st_size=884, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001f000
read(4, "root::0:0:root:/root:/bin/bash\nb"..., 4096) = 884
close(4)  = 0
munmap(0x4001f000, 4096)    = 0
open("/proc/152/stat", O_RDONLY|O_LARGEFILE) = 4
read(4, "152 (kjournald) S 14 1 1 0 -1 64"..., 1023) = 137
close(4)  = 0
stat64("/proc/154", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
open("/etc/passwd", O_RDONLY)     = 4
fcntl64(4, F_GETFD)   = 0
fcntl64(4, F_SETFD, FD_CLOEXEC)   = 0
fstat64(4, {st_mode=S_IFREG|0644, st_size=884, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001f000
read(4, "root::0:0:root:/root:/bin/bash\nb"..., 4096) = 884
close(4)  = 0
munmap(0x4001f000, 4096)    = 0
open("/proc/154/stat", O_RDONLY|O_LARGEFILE) = 4
read(4, "154 (IRQ 12) S 14 1 1 0 -1 21475"..., 1023) = 144
close(4)  = 0
stat64("/proc/259", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
open("/etc/passwd", O_RDONLY)     = 4
fcntl64(4, F_GETFD)   = 0
fcntl64(4, F_SETFD, FD_CLOEXEC)   = 0
fstat64(4, {st_mode=S_IFREG|0644, st_size=884, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001f000
read(4, "root::0:0:root:/root:/bin/bash\nb"..., 4096) = 884
close(4)  = 0
munmap(0x4001f000, 4096)    = 0
open("/proc/259/stat", O_RDONLY|O_LARGEFILE) = 4
read(4, "259 (sshd) S 1 259 259 0 -1 4194"..., 1023) = 182
close(4)  = 0
stat64("/proc/267", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
open("/etc/passwd", O_RDONLY)     = 4
fcntl64(4, F_GETFD)   = 0
fcntl64(4, F_SETFD, FD_CLOEXEC)   = 0
fstat64(4, {st_mode=S_IFREG|0644, st_size=884, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001f000
read(4, "root::0:0:root:/root:/bin/bash\nb"..., 4096) = 884
close(4)  = 0
munmap(0x4001f000, 4096)    = 0
open("/proc/267/stat", O_RDONLY|O_LARGEFILE) = 4
read(4, "267 (sh) S 1 267 267 0 -1 419456"..., 1023) = 181
close(4)  = 0
stat64("/proc/273", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
open("/etc/passwd", O_RDONLY)     = 4
fcntl64(4, F_GETFD)   = 0
fcntl64(4, F_SETFD, FD_CLOEXEC)   = 0
fstat64(4, {st_mode=S_IFREG|0644, st_size=884, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001f000
read(4, "root::0:0:root:/root:/bin/bash\nb"..., 4096) = 884
close(4)  = 0
munmap(0x4001f000, 4096)    = 0
open("/proc/273/stat", O_RDONLY|O_LARGEFILE) = 4
read(4, "273 (strace) S 267 267 267 0 -1 "..., 1023) = 189
close(4)  = 0
stat64("/proc/274", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
open("/etc/passwd", O_RDONLY)     = 4
fcntl64(4, F_GETFD)   = 0
fcntl64(4, F_SETFD, FD_CLOEXEC)   = 0
fstat64(4, {st_mode=S_IFREG|0644, st_size=884, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001f000
read(4, "root::0:0:root:/root:/bin/bash\nb"..., 4096) = 884
close(4)  = 0
munmap(0x4001f000, 4096)    = 0
open("/proc/274/stat", O_RDONLY|O_LARGEFILE) = 4
read(4, "274 (top) R 273 267 267 0 -1 419"..., 1023) = 169
close(4)  = 0
getdents64(3, /* 0 entries */, 8192)    = 0
close(3)  = 0
open("stat", O_RDONLY|O_LARGEFILE)= 3
fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001f000
read(3, "cpu  20839 0 13117 15817 9 0 0 0"..., 1024) = 460
close(3)  = 0
munmap(0x4001f000, 4096)    = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGCHLD, NULL, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
nanosleep({1, 0},
 
Old 07-10-2008, 04:00 AM   #4
rahulthewall3000
Member
 
Registered: Jan 2008
Location: Bremen
Distribution: Gentoo
Posts: 33

Original Poster
Rep: Reputation: 15
I can not make much sense out of this.
 
Old 07-10-2008, 07:31 AM   #5
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
The output of strace can be used in two ways. If you are a programming expert then you can watch the details of your program asking for file access. I am not a programming expert so I use the output differently. I look for very obvious problems being reported. Mostly I look for entries near the end of the output that show things like when the program tries to open files that don't exist or when the program doesn't have sufficient privilege to open a file.

In this case the beginning of the output shows the top utility trying to open files that don't exist. (ENOENT error means "error, no entity") Since these are only at the beginning of the strace I think that we can ignore them.

The remaining half of the strace output shows that the top utility is executing a lot of similar sequences. That makes sense since the top utility keeps running in a loop until the operator stops it. These loops are probably normal behavior.

So I don't see any obvious problems reported in the strace output. In this case I think that I've shot all of my bullets. I don't know what else to look at.

Last edited by stress_junkie; 07-10-2008 at 07:34 AM.
 
Old 08-20-2008, 04:47 AM   #6
rahulthewall3000
Member
 
Registered: Jan 2008
Location: Bremen
Distribution: Gentoo
Posts: 33

Original Poster
Rep: Reputation: 15
The problem seemed to be with the busybox implementation of top. Replaced it and it works. Solved.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
TOP Command Details send2rawat Linux - General 6 02-18-2010 02:20 AM
top command Volcano Programming 18 10-15-2008 10:02 PM
Top command mtnpaul Linux - Software 2 04-17-2008 04:25 AM
RHEL3 U2 system: Treminal hangs with commands like ps and top p_test Linux - Enterprise 2 02-15-2008 07:24 AM
Top Command swamprat Linux - Software 3 09-23-2007 02:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 10:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration