Here's a sample program to do the deed:
    wget http://www.skarven.net/lda/crashme.c
    cc -o crashme crashme.c	# compile it
    ./crashme 4000		# OK
    ./crashme 9999		# CRASH
It's a little obfuscated to eliminate the need for root privileges to
mess with rlimit. It simply opens a bunch of files with O_DIRECT and,
when enough files are open, the system will hang.
The system hangs when '/proc/slabinfo' reports that 'kiobuf' reaches 
just over 7230 active objects. I don't believe that this problem is
specific to any particular file system as the failure occurs when
using both ext2 and reiserfs.
Larry Auton
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/