Mailing List Archive

"rm -rf" stuck on pandaboard
Hi ALL:
I'm running Gentoo on pandaboard, and doing pretty much heavy compiling
The problem here I meet is that after compile a few time, rm -rf
/var/tmp/portage/xxfile
got choked, here top command shows, CPU running 100:
17274 root 20 0 3800 620 472 R 100 0.1 75:39.92 rm
and kill -9 17274 won't help

More detail of what I'm doing
0) using usb-storage device as my root (yes, mount /dev/sda2 to / )

1) mount /var/tmp/portage as tmpfs,
tmpfs /var/tmp/portage tmpfs rw,size=1200M,nr_inodes=1M 0 0

2) using swap file
/swapfile none swap sw 0 0

3) using kernel from git://git.linaro.org/people/andygreen/kernel-tilt.git
commit 5b14e370cca884fa86471e909512f65b06dcaec2

4) kernel command paramater
[ 0.000000] Kernel command line: ro elevator=noop vram=32M root=/dev/sda2
rootwait fixrtc console=ttyO2,115200 mem=456M@0x80000000 mem=512M@0xA0000000

Any suggestion? or any other info needed?

Dennis
Re: "rm -rf" stuck on pandaboard [ In reply to ]
Hello,

On Wednesday, July 20, 2011, Dennis.Yxun <dennis.yxun@gmail.com> wrote:
> Hi ALL:
>    I'm running Gentoo on pandaboard, and doing pretty much heavy compiling
> The problem here I meet is that after compile a few time, rm -rf /var/tmp/portage/xxfile
> got choked, here top command shows,
[...]
> Any suggestion? or any other info needed

when it hang again do "echo t >/proc/sysrq-trigger" then check dmesg
and look for the hanging rm process. the stacktrace may give a clue
as to what's wrong.

Manuel
Re: "rm -rf" stuck on pandaboard [ In reply to ]
reproduce this bug again.
here is dmesg_log.txt
using the same commit, and kernel config file is omap4_defconfig

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+
COMMAND
3103 root 20 0 3856 748 488 R 100 0.1 179:23.35 rm


On Thu, Jul 21, 2011 at 5:04 AM, Manuel Lauss
<manuel.lauss@googlemail.com>wrote:

> Hello,
>
> On Wednesday, July 20, 2011, Dennis.Yxun <dennis.yxun@gmail.com> wrote:
> > Hi ALL:
> > I'm running Gentoo on pandaboard, and doing pretty much heavy
> compiling
> > The problem here I meet is that after compile a few time, rm -rf
> /var/tmp/portage/xxfile
> > got choked, here top command shows,
> [...]
> > Any suggestion? or any other info needed
>
> when it hang again do "echo t >/proc/sysrq-trigger" then check dmesg
> and look for the hanging rm process. the stacktrace may give a clue
> as to what's wrong.
>
> Manuel
>
>
Re: "rm -rf" stuck on pandaboard [ In reply to ]
On Sun, Jul 24, 2011 at 9:49 AM, Dennis.Yxun <dennis.yxun@gmail.com> wrote:
> reproduce this bug again.
> here is dmesg_log.txt
> using the same commit, and kernel config file is omap4_defconfig
>
>   PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+
> COMMAND
>  3103 root      20   0  3856  748  488 R  100  0.1 179:23.35 rm

It doesn't look like it's hanging, rm is still being scheduled and busily
working on the FS. You should report this bug to the kernel list
(try latest -git sources first).

Good luck,
Manuel