Re: computer becomes slow when compiling something

From: Ganbold <ganbold_at_micom.mng.net>
Date: Mon, 27 Aug 2007 12:42:24 +0800
Kevin Oberman wrote:
>> Date: Mon, 27 Aug 2007 12:25:38 +0800
>> From: Ganbold <ganbold_at_micom.mng.net>
>> Sender: owner-freebsd-current_at_freebsd.org
>>
>> Hi,
>>
>> I'm running FreeBSD 7.0-CURRENT with SCHED_ULE, INVARIANTS, WITNESS 
>> enabled kernel.
>>
>> daemon# uname -an
>> FreeBSD daemon.micom.mng.net 7.0-CURRENT FreeBSD 7.0-CURRENT #2: Thu Aug 
>> 23 17:59:17 ULAT 2007     
>> tsgan_at_daemon.micom.mng.net:/usr/obj/usr/src/sys/GDAEMON  i386
>> daemon#
>>
>> When compiling something (buildworld or making wine for example) inside 
>> from X/gnome
>> my computer becomes very slow.
>>
>> top shows while compiling wine:
>>
>> last pid: 38660;  load averages:  3.10,  2.24,  
>> 1.33                                                                                 
>> up 3+02:07:05  12:11:38
>> 106 processes: 3 running, 102 sleeping, 1 zombie
>> CPU states: 90.2% user,  0.0% nice,  9.8% system,  0.0% interrupt,  0.0% 
>> idle
>> Mem: 704M Active, 63M Inact, 168M Wired, 39M Cache, 111M Buf, 21M Free
>> Swap: 2048M Total, 195M Used, 1853M Free, 9% Inuse
>>
>>   PID USERNAME    THR PRI NICE   SIZE    RES STATE    TIME   WCPU COMMAND
>>   902 tsgan         1  96    0   147M   134M RUN    929:41  3.96% Xorg
>> 38659 root          1  96    0 15556K 12256K RUN      0:00  3.47% cc1
>>  1206 tsgan         1  44   19   156M 36940K select 178:06  0.00% 
>> operapluginwrapper
>>   978 tsgan         1  44    0   212M   173M select 103:26  0.00% opera
>>   954 tsgan         1  44    0 35236K 18372K select  11:59  0.00% 
>> wnck-applet
>>   975 tsgan         7  44    0   198M   159M ucond    8:53  0.00% 
>> thunderbird-bin
>>   922 tsgan         1  44    0  4808K  1460K select   4:43  0.00% gam_server
>>   956 tsgan         1  44    0 35324K 16328K select   4:36  0.00% 
>> mixer_applet2
>>   962 tsgan         1  44    0 13736K  5936K select   1:57  0.00% 
>> gnome-screensaver
>>  1224 tsgan         1  44    0 70232K 28900K select   1:33  0.00% pidgin
>>  1591 tsgan         1  44   19  5520K   772K select   1:17  0.00% 
>> operapluginwrapper
>>   772 root          1  44    0  4496K   928K select   1:03  0.00% 
>> hald-addon-storage
>>   930 tsgan         1  44    0 16204K  8744K select   0:48  0.00% metacity
>>   441 root          1  44    0  3276K   592K select   0:45  0.00% moused
>>   765 haldaemon     1  44    0  6164K  2252K select   0:41  0.00% hald
>> ...
>>
>> Is it due to SCHED_ULE makes a process CPU greedy and that is why my 
>> computer becomes slow?
>> Or it is something else? What SCHED_ULE sysctl knobs should I test here?
>> As I recall correctly I have never experienced such problems until 
>> recently.
>> Maybe I'm wrong here.
>>     
>
> I've seen it for a while. You are running out of RAM and I have found
> that once the swap use starts growing, things get VERY slow. I still
> think something is wrong, but memory is cheap and an extra 1/2 Gig can
> make a huge difference. 

At first I thought about that.
But I have 1GB memory and as I remember I hadn't such problems when I 
was running RELENG_6.
Wine compile is still running and top shows:

last pid: 46408;  load averages:  1.90,  2.31,  
2.11                                                                                 
up 3+02:31:42  12:36:15
107 processes: 3 running, 103 sleeping, 1 zombie
CPU states: 94.7% user,  0.0% nice,  5.3% system,  0.0% interrupt,  0.0% 
idle
Mem: 656M Active, 89M Inact, 183M Wired, 37M Cache, 111M Buf, 29M Free
Swap: 2048M Total, 321M Used, 1727M Free, 15% Inuse

  PID USERNAME    THR PRI NICE   SIZE    RES STATE    TIME   WCPU COMMAND
46406 root          1 110    0   122M   120M RUN      0:11 66.26% cc1
  902 tsgan         1  47    0   139M   122M select 931:51  6.40% Xorg
  962 tsgan         1  44    0 13736K  5780K select   1:59  0.59% 
gnome-screensaver
  975 tsgan         8  44    0   186M   141M ucond    9:30  0.29% 
thunderbird-bin
  954 tsgan         1  44    0 35236K 17328K select  12:02  0.10% 
wnck-applet
46408 root          1  44    0  3524K  1500K RUN      0:00  0.10% top
 1206 tsgan         1  44   19   156M  8480K RUN    178:52  0.00% 
operapluginwrapper
  978 tsgan         1  44    0   212M   144M select 104:21  0.00% opera
  922 tsgan         1  44    0  4808K  1340K select   4:45  0.00% gam_server
  956 tsgan         1  44    0 35324K 15128K select   4:38  0.00% 
mixer_applet2
 1224 tsgan         1  44    0 70232K 24344K select   1:34  0.00% pidgin
 1591 tsgan         1  44   19  5520K   740K select   1:17  0.00% 
operapluginwrapper
  772 root          1  44    0  4496K   892K select   1:04  0.00% 
hald-addon-storage
 1119 tsgan         2  -8    0   210M   172M piperd   0:57  0.00% 
gnome-terminal
  930 tsgan         1  44    0 16204K  8376K select   0:51  0.00% metacity
  441 root          1  44    0  3276K   584K select   0:48  0.00% moused
...
> I have not seen any difference between
> schedulers...about the same with 4BSD and ULE.
>   
I see.

thanks.

Ganbold


-- 
The USA is so enormous, and so numerous are its schools, colleges and 
religious seminaries, many devoted to special religious beliefs ranging 
from the unorthodox to the dotty, that we can hardly wonder at its 
yielding a more bounteous harvest of gobbledygook than the rest of the 
world put together. -- Sir Peter Medawar
Received on Mon Aug 27 2007 - 02:42:30 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:16 UTC