find command consumes memory and it killed by oom-killer process

Latest response

Most recent comment: On 2013-11-25 15:50:51, Vensky, Michael commented:
"Here's dmesg:


lowmem_reserve[]: 0 0 0 0
Node 0 DMA: 14kB 18kB 116kB 132kB 164kB 1128kB 0256kB 0512kB 11024kB 12048kB 34096kB = 15612kB
Node 0 DMA32: 3
4kB 108kB 1316kB 832kB 564kB 6128kB 7256kB 4512kB 21024kB 42048kB 124096kB = 64876kB
Node 0 Normal: 8584kB 10138kB 55316kB 21532kB 5164kB 34128kB 25256kB 16512kB 11024kB 02048kB 1*4096kB = 54592kB
4944 total pagecache pages
4113 pages in swap cache
Swap cache stats: add 5072757, delete 5068644, find 36551/43117
Free swap = 0kB
Total swap = 4063224kB
4194288 pages RAM
110239 pages reserved
3613 pages shared
4045497 pages non-shared
[ pid ] uid tgid total_vm rss cpu oom_adj oom_score_adj name
[ 515] 0 515 2751 0 3 -17 -1000 udevd
[ 1843] 0 1843 6909 1 1 -17 -1000 auditd
[ 1868] 0 1868 63855 57 1 0 0 rsyslogd
[ 1897] 0 1897 2737 33 0 0 0 irqbalance
[ 1916] 32 1916 4743 15 0 0 0 rpcbind
[ 2027] 81 2027 5569 52 0 0 0 dbus-daemon
[ 2037] 0 2037 22565 29 3 0 0 NetworkManager
[ 2043] 0 2043 13958 10 0 0 0 modem-manager
[ 2056] 29 2056 5836 1 0 0 0 rpc.statd
[ 2099] 0 2099 6290 1 1 0 0 rpc.idmapd
[ 2116] 0 2116 2279 1 2 0 0 dhclient
[ 2119] 0 2119 47864 1 0 0 0 cupsd
[ 2120] 0 2120 11157 1 1 0 0 wpa_supplicant
[ 2156] 0 2156 1019 0 2 0 0 acpid
[ 2165] 68 2165 6582 29 1 0 0 hald
[ 2166] 0 2166 4526 1 2 0 0 hald-runner
[ 2207] 0 2207 5055 1 0 0 0 hald-addon-inpu
[ 2212] 68 2212 4451 1 2 0 0 hald-addon-acpi
[ 2226] 0 2226 1178 0 3 0 0 hv_kvp_daemon
[ 2246] 0 2246 96425 30 1 0 0 automount
[ 2271] 0 2271 16563 0 3 -17 -1000 sshd
[ 2279] 0 2279 5533 1 1 0 0 xinetd
[ 2400] 38 2400 7540 35 1 0 0 ntpd
[ 2438] 0 2438 20216 21 1 0 0 master
[ 2451] 89 2451 20236 18 2 0 0 pickup
[ 2452] 89 2452 20279 22 1 0 0 qmgr
[ 2462] 0 2462 27552 1 3 0 0 abrtd
[ 2470] 0 2470 27016 25 0 0 0 abrt-dump-oops
[ 2482] 0 2482 60335 14 0 0 0 httpd
[ 2492] 0 2492 27051 0 2 0 0 ksmtuned
[ 2501] 0 2501 29313 1 1 0 0 crond
[ 2610] 0 2610 5373 0 3 0 0 atd
[ 2623] 48 2623 60657 687 1 0 0 httpd
[ 2624] 48 2624 60626 679 3 0 0 httpd
[ 2625] 48 2625 60882 705 2 0 0 httpd
[ 2626] 48 2626 60562 686 0 0 0 httpd
[ 2627] 48 2627 60626 677 1 0 0 httpd
[ 2628] 48 2628 60624 691 2 0 0 httpd
[ 2629] 48 2629 60654 709 2 0 0 httpd
[ 2630] 48 2630 60624 674 3 0 0 httpd
[ 2636] 0 2636 104167 202 1 0 0 python
[ 2651] 0 2651 257913 56 1 0 0 libvirtd
[ 2674] 0 2674 25224 0 3 0 0 rhnsd
[ 2682] 0 2682 25972 1 1 0 0 rhsmcertd
[ 2752] 0 2752 15494 9 3 0 0 certmonger
[ 2780] 0 2780 1015 1 0 0 0 mingetty
[ 2782] 0 2782 1015 1 3 0 0 mingetty
[ 2786] 0 2786 1015 1 3 0 0 mingetty
[ 2788] 0 2788 1015 1 0 0 0 mingetty
[ 2790] 0 2790 1015 1 0 0 0 mingetty
[ 2844] 99 2844 3222 0 2 0 0 dnsmasq
[ 3046] 0 3046 30367 11 3 0 0 gdm-binary
[ 3291] 0 3291 521088 59 0 0 0 console-kit-dae
[ 3367] 0 3367 25000 37 3 0 0 sshd
[ 3369] 0 3369 27118 1 3 0 0 bash
[ 3396] 0 3396 11270 10 2 0 0 devkit-power-da
[ 4569] 0 4569 12462 36 1 0 0 polkitd
[ 5023] 0 5023 10682 52 1 0 0 udisks-daemon
[ 5041] 0 5041 10084 24 3 0 0 udisks-daemon
[ 5042] 0 5042 92270 1 3 0 0 pulseaudio
[ 5196] 0 5196 23757 1 0 0 0 gconf-helper
[24821] 0 24821 2750 0 3 -17 -1000 udevd
[24823] 0 24823 2750 0 3 -17 -1000 udevd
[24982] 0 24982 42318 94 2 0 0 vmtoolsd
[25081] 0 25081 38064 1 1 0 0 gdm-simple-slav
[25083] 0 25083 32984 90 0 0 0 Xorg
[25103] 42 25103 5009 0 3 0 0 dbus-launch
[26375] 0 26375 44236 1 3 0 0 gdm-session-wor
[26695] 0 26695 37631 1 0 0 0 gnome-keyring-d
[26704] 0 26704 63178 51 2 0 0 gnome-session
[26712] 0 26712 5009 0 2 0 0 dbus-launch
[26713] 0 26713 5480 149 2 0 0 dbus-daemon
[26783] 0 26783 33299 66 1 0 0 gconfd-2
[26788] 0 26788 104844 102 3 0 0 gnome-settings-
[26792] 0 26792 73214 1 3 0 0 seahorse-daemon
[26798] 0 26798 33642 1 0 0 0 gvfsd
[26811] 0 26811 51613 1 2 0 0 gvfs-fuse-daemo
[26817] 0 26817 61217 32 0 0 0 metacity
[26818] 0 26818 82393 323 3 0 0 gnome-panel
[26819] 0 26819 134729 1 3 0 0 nautilus
[26821] 0 26821 157650 1 0 0 0 bonobo-activati
[26825] 0 26825 64316 175 1 0 0 gnome-power-man
[26826] 0 26826 63716 1 2 0 0 gdu-notificatio
[26827] 0 26827 59578 95 2 0 0 vmtoolsd
[26831] 0 26831 57311 1 3 0 0 polkit-gnome-au
[26833] 0 26833 66060 10 0 0 0 abrt-applet
[26836] 0 26836 57352 1 1 0 0 rhsm-icon
[26843] 0 26843 65371 10 2 0 0 bluetooth-apple
[26845] 0 26845 78969 1 3 0 0 trashapplet
[26847] 0 26847 35895 1 3 0 0 gvfs-gdu-volume
[26849] 0 26849 75989 80 3 0 0 wnck-applet
[26855] 0 26855 69594 94 1 0 0 notification-da
[26858] 0 26858 35298 1 0 0 0 gvfsd-trash
[26863] 0 26863 70221 104 1 0 0 gpk-update-icon
[26867] 0 26867 28624 1 3 0 0 im-settings-dae
[26869] 0 26869 57983 6 3 0 0 gvfs-afc-volume
[26873] 0 26873 37043 1 3 0 0 gvfs-gphoto2-vo
[26874] 0 26874 80386 188 0 0 0 python
[26882] 0 26882 79785 14 1 0 0 nm-applet
[26885] 0 26885 92311 1 0 0 0 gnome-volume-co
[26894] 0 26894 69953 82 0 0 0 gnome-screensav
[26922] 0 26922 98290 1 3 0 0 gdm-user-switch
[26923] 0 26923 103820 1 3 0 0 gnote
[26924] 0 26924 116182 14 0 0 0 clock-applet
[26927] 0 26927 72521 213 3 0 0 notification-ar
[27055] 0 27055 9564 1 0 0 0 gconf-im-settin
[27091] 0 27091 33649 1 1 0 0 gvfsd-burn
[27193] 0 27193 25000 1 2 0 0 sshd
[27195] 0 27195 27117 1 1 0 0 bash
[27222] 0 27222 76559 560 2 0 0 gnome-system-mo
[27226] 0 27226 5083 0 2 0 0 dbus-launch
[27227] 0 27227 5350 1 1 0 0 dbus-daemon
[27229] 0 27229 33262 142 0 0 0 gconfd-2
[27316] 48 27316 60626 679 1 0 0 httpd
[27380] 0 27380 25003 4 2 0 0 sshd
[27382] 0 27382 27083 29 3 0 0 bash
[27418] 0 27418 3791 85 1 0 0 top
[27434] 48 27434 60622 599 3 0 0 httpd
[27499] 0 27499 19844 59 0 0 0 packagekitd
[27501] 0 27501 4971241 3974613 3 0 0 find
[27502] 48 27502 60622 291 2 0 0 httpd
[27544] 0 27544 25226 1 0 0 0 sleep
Out of memory: Kill process 27501 (find) score 941 or sacrifice child
Killed process 27501, UID 0, (find) total-vm:19884964kB, anon-rss:15898396kB, file-rss:56kB"

Responses

You're out of memory and out of swap; this is the expected behavior. If you have a lot of stuff paged in memory you can drop your kernel caches and what not and free up some system memory.

As Stephen indicated, your system is short on memory and is attempting to preserve enough operating overhead to keep higher-priority processes running.

That said, you haven't given us any indication of how you're executing your find command. There are Good Ways(TM) and Bad Ways(TM) to run find (with respect to resource utilization). If you're running it one of the Bad Ways(TM), providing the command to us to evaluate might help us identify a less resource-intensive use-profile.

Close

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