My poor old Sun is suffering a very high load average after running
$ make test
PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/NLWP
15266 drkirkby 34M 31M run 55 0 0:01:16 20% maxima/1
3260 drkirkby 30M 20M run 20 0 15:06:02 12% maxima/1
15387 drkirkby 34M 25M run 49 0 16:56:20 7.3% maxima/1
17399 drkirkby 122M 74M run 55 0 0:00:03 4.4% python/1
27808 drkirkby 210M 169M sleep 49 0 0:02:38 3.1%
thunderbird-bin/8
692 drkirkby 203M 67M sleep 55 0 0:23:54 2.4% Xsun/1
1109 drkirkby 90M 47M cpu0 59 0 0:10:40 1.8% gnome-terminal/2
1 root 2896K 1760K sleep 59 0 0:04:26 1.8% init/1
8512 drkirkby 147M 85M run 59 0 0:02:46 1.2% python/1
890 drkirkby 74M 36M sleep 59 0 0:03:00 0.6% metacity/1
1877 drkirkby 260M 170M run 49 0 0:52:34 0.4% firefox-bin/6
27309 drkirkby 214M 138M sleep 49 0 0:04:39 0.3% acroread/1
17168 drkirkby 8528K 5984K sleep 59 0 0:00:00 0.2% python/1
909 drkirkby 71M 30M sleep 49 0 0:00:47 0.2% wnck-applet/1
29743 root 27M 26M sleep 49 0 0:00:01 0.1% dtrace/1
Total: 141 processes, 334 lwps, load averages: 10.50, 9.78, 9.34
With two processors, the top 10 processes are only using about 50% of
the CPU time, but the load average is huge.
I downloaded the DTrace toolkit for Solaris, and run the program and see
below all these processes being created. Thousands of them in very quick
succession. This is what's grinding my system to a halt. See below
(there is some more text below this.)
89894733910 100 3845 8512 sh -c top -b -n 65635 |grep "^ *8512 "
89894741404 100 3846 3845 grep ^ *8512
89894747102 100 3848 8512 sh -c top -b -n 65635 |grep "^ *8512 "
89894754979 100 3849 3848 grep ^ *8512
89894760720 100 3851 8512 sh -c top -b -n 65635 |grep "^ *8512 "
89894768149 100 3852 3851 grep ^ *8512
89894773976 100 3854 8512 sh -c top -b -n 65635 |grep "^ *8512 "
89894781497 100 3855 3854 grep ^ *8512
89894787238 100 3857 8512 sh -c top -b -n 65635 |grep "^ *8512 "
89894794775 100 3858 3857 grep ^ *8512
89894800408 100 3860 8512 sh -c top -b -n 65635 |grep "^ *8512 "
89894808531 100 3861 3860 grep ^ *8512
89894814419 100 3863 8512 sh -c top -b -n 65635 |grep "^ *8512 "
89894821841 100 3864 3863 grep ^ *8512
89894827422 100 3866 8512 sh -c top -b -n 65635 |grep "^ *8512 "
89894835185 100 3867 3866 grep ^ *8512
89894840953 100 3869 8512 sh -c top -b -n 65635 |grep "^ *8512 "
89894848543 100 3870 3869 grep ^ *8512
89894854417 100 3872 8512 sh -c top -b -n 65635 |grep "^ *8512 "
89894862514 100 3873 3872 grep ^ *8512
89894868181 100 3875 8512 sh -c top -b -n 65635 |grep "^ *8512 "
89894875742 100 3876 3875 grep ^ *8512
89894881348 100 3878 8512 sh -c top -b -n 65635 |grep "^ *8512 "
89894888667 100 3879 3878 grep ^ *8512
89894895894 100 3881 8512 sh -c top -b -n 65635 |grep "^ *8512 "
89894903349 100 3882 3881 grep ^ *8512
89894912944 100 3884 8512 sh -c top -b -n 65635 |grep "^ *8512 "
89894920431 100 3885 3884 grep ^ *8512
89894926087 100 3887 8512 sh -c top -b -n 65635 |grep "^ *8512 "
89894933587 100 3888 3887 grep ^ *8512
89894939161 100 3890 8512 sh -c top -b -n 65635 |grep "^ *8512 "
89894946638 100 3891 3890 grep ^ *8512
89894952373 100 3893 8512 sh -c top -b -n 65635 |grep "^ *8512 "
89894959806 100 3894 3893 grep ^ *8512
89894965480 100 3896 8512 sh -c top -b -n 65635 |grep "^ *8512 "
89894973161 100 3897 3896 grep ^ *8512
89894978786 100 3899 8512 sh -c top -b -n 65635 |grep "^ *8512 "
89894986192 100 3900 3899 grep ^ *8512
89894991957 100 3902 8512 sh -c top -b -n 65635 |grep "^ *8512 "
89894999384 100 3903 3902 grep ^ *8512
89895004995 100 3905 8512 sh -c top -b -n 65635 |grep "^ *8512 "
89895012565 100 3906 3905 grep ^ *8512
89895018207 100 3908 8512 sh -c top -b -n 65635 |grep "^ *8512 "
89895025675 100 3909 3908 grep ^ *8512
89895031447 100 3911 8512 sh -c top -b -n 65635 |grep "^ *8512 "
89895038823 100 3912 3911 grep ^ *8512
89895044592 100 3914 8512 sh -c top -b -n 65635 |grep "^ *8512 "
89895052106 100 3915 3914 grep ^ *8512
89895057704 100 3917 8512 sh -c top -b -n 65635 |grep "^ *8512 "
89895065100 100 3918 3917 grep ^ *8512
89895070740 100 3920 8512 sh -c top -b -n 65635 |grep "^ *8512 "
89895078237 100 3921 3920 grep ^ *8512
89895084077 100 3923 8512 sh -c top -b -n 65635 |grep "^ *8512 "
89895091560 100 3924 3923 grep ^ *8512
89895097152 100 3926 8512 sh -c top -b -n 65635 |grep "^ *8512 "
89895104695 100 3927 3926 grep ^ *8512
89895110341 100 3929 8512 sh -c top -b -n 65635 |grep "^ *8512 "
89895118646 100 3930 3929 grep ^ *8512
89895125036 100 3932 8512 sh -c top -b -n 65635 |grep "^ *8512 "
89895132837 100 3933 3932 grep ^ *8512
89895138536 100 3935 8512 sh -c top -b -n 65635 |grep "^ *8512 "
89895146824 100 3936 3935 grep ^ *8512
89895153067 100 3938 8512 sh -c top -b -n 65635 |grep "^ *8512 "
89895162066 100 3939 3938 grep ^ *8512
89895168235 100 3941 8512 sh -c top -b -n 65635 |grep "^ *8512 "
89895176711 100 3942 3941 grep ^ *8512
89895182870 100 3944 8512 sh -c top -b -n 65635 |grep "^ *8512 "
89895190897 100 3945 3944 grep ^ *8512
89895196512 100 3947 8512 sh -c top -b -n 65635 |grep "^ *8512 "
89895204003 100 3948 3947 grep ^ *8512
89895209591 100 3950 8512 sh -c top -b -n 65635 |grep "^ *8512 "
89895216912 100 3951 3950 grep ^ *8512
89895222895 100 3953 8512 sh -c top -b -n 65635 |grep "^ *8512 "
89895230296 100 3954 3953 grep ^ *8512
89895235905 100 3956 8512 sh -c top -b -n 65635 |grep "^ *8512 "
89895243370 100 3957 3956 grep ^ *8512
89895248999 100 3959 8512 sh -c top -b -n 65635 |grep "^ *8512 "
89895257912 100 3960 3959 grep ^ *8512
89895263786 100 3962 8512 sh -c top -b -n 65635 |grep "^ *8512 "
89895271296 100 3963 3962 grep ^ *8512
89895276901 100 3965 8512 sh -c top -b -n 65635 |grep "^ *8512 "
89895284465 100 3966 3965 grep ^ *8512
89895290095 100 3968 8512 sh -c top -b -n 65635 |grep "^ *8512 "
89895297448 100 3969 3968 grep ^ *8512
89895303344 100 3971 8512 sh -c top -b -n 65635 |grep "^ *8512 "
89895310712 100 3972 3971 grep ^ *8512
89895317037 100 3974 8512 sh -c top -b -n 65635 |grep "^ *8512 "
89895324711 100 3975 3974 grep ^ *8512
89895330332 100 3977 8512 sh -c top -b -n 65635 |grep "^ *8512 "
89895337744 100 3978 3977 grep ^ *8512
89895343532 100 3980 8512 sh -c top -b -n 65635 |grep "^ *8512 "
89895350921 100 3981 3980 grep ^ *8512
89895356515 100 3983 8512 sh -c top -b -n 65635 |grep "^ *8512
89955235490 100 16356 16355 grep ^ *8512
89955240596 100 16358 8512 sh -c top -b -n 65635 |grep "^ *8512 "
89955346959 100 16359 16358 grep ^ *8512
89955610235 100 16362 875 grep ERROR occurred
/export/home/drkirkby/sage/sage-4.1.1/tmp/test-dsage.log
89955622552 100 16363 875 tee -a
/export/home/drkirkby/sage/sage-4.1.1/tmp/test.log
89955636569 100 16364 875 cat
/export/home/drkirkby/sage/sage-4.1.1/tmp/test.log
Killing maxima processes did not help, but killing python did. I then see
89955215419 100 16352 8512 sh -c top -b -n 65635 |grep "^ *8512 "
89955222968 100 16353 16352 grep ^ *8512
89955228085 100 16355 8512 sh -c top -b -n 65635 |grep "^ *8512 "
89955235490 100 16356 16355 grep ^ *8512
89955240596 100 16358 8512 sh -c top -b -n 65635 |grep "^ *8512 "
89955346959 100 16359 16358 grep ^ *8512
89955610235 100 16362 875 grep ERROR occurred
/export/home/drkirkby/sage/sage-4.1.1/tmp/test-dsage.log
89955622552 100 16363 875 tee -a
/export/home/drkirkby/sage/sage-4.1.1/tmp/test.log
89955636569 100 16364 875 cat
/export/home/drkirkby/sage/sage-4.1.1/tmp/test.log
Something in Sage is getting into a mess calling grep and top in quick
succession. Is this supposed to be the performance monitoring tool? If
so, calling 'top' is not a good idea. It is not a standard tool, and
well known to be inaccurate on Solaris.
Dave
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send an email to [email protected]
To unsubscribe from this group, send an email to
[email protected]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---