find command with -follow on /dev causing high cpu load and error messages

Solution Unverified - Updated -

Issue

The following command results in a high CPU load (95%) as well as a heavy memory utilization.

find / -follow \( -fstype ext3 -o -fstype tmpfs \) -type f -name core -size +0 -ctime +7 -exec rm {} \;

The command produces following messages.

find: Symbolic link `/dev/.udev/failed/class@input@input2/event2/device/subsystem/drivers/i8042/i8042/serio0/bus/drivers/psmouse/serio1/input:event1/subsystem/input1/mouse0/subsystem' is part of a loop in the directory hierarchy; we have already visited the directory to which it points.

Environment

Red Hat Enterprise Linux 5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.