Re: Painfully slow compilation (read: "make buildworld buildkernel") on not-so-weak system

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: Painfully slow compilation (read: "make buildworld buildkernel") on not-so-weak system

Lev Serebryakov
Hello Lev,

Saturday, December 8, 2018, 2:13:03 PM, you wrote:


>  Another strange thing I noticed: when system is in such state, "top -SH"
> shows that sometimes very low-profile processes, like clock software
> interrupt (!) could consume large amount of CPU for short periods time. When
> system is idle there never will be "intr{swi4: clock (0)}" consuming 55% CPU
> for one "frame" or sshd, or screen itself.
 Like this. This system doesn't have any significant network traffic now —
only one ssh connection, which is used as console. And 62.3% for network
card. WTF?!

  PID USERNAME    PRI NICE   SIZE    RES STATE    C   TIME    WCPU COMMAND
20128 root        101    0   104M    74M CPU1     1   0:31 100.00% cc
    0 root        -76    -      0  4608K -        2  53:25  62.23% kernel{if_config_tqg_0}
   11 root        -60    -      0   240K WAIT     0  25:45  24.89% intr{swi4: clock (0)}
    9 root         -8    -      0   160K tx->tx   0   7:38  24.88% zfskern{txg_thread_enter}
  995 root         24    0    17M  7676K select   1   2:20  12.44% sendmail
13791 root         24    0    24M    15M select   0   0:04  12.44% make




--
Best regards,
 Lev                            mailto:[hidden email]
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: Painfully slow compilation (read: "make buildworld buildkernel") on not-so-weak system

Eugene Grosbein-10
08.12.2018 18:13, Lev Serebryakov wrote:

>  I'm completely lost. Is it problem of software? Hardware? If it is
> hardware problem what should I blame?

Try using different kern.timecounter.hardware and/or kern.eventtimer.timer
but first try kern.eventtimer.periodic=1 instead of default 0.

If something of this helps, try going back to defaults and then disable power-saving settings, if any.

_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: Painfully slow compilation (read: "make buildworld buildkernel") on not-so-weak system

Lev Serebryakov
Hello Eugene,

Saturday, December 8, 2018, 4:27:13 PM, you wrote:

>>  I'm completely lost. Is it problem of software? Hardware? If it is
>> hardware problem what should I blame?

> Try using different kern.timecounter.hardware and/or kern.eventtimer.timer
> but first try kern.eventtimer.periodic=1 instead of default 0.
 Nothing helps. I've tried periodic=1 and replace hardware and time with HPT
 (from TSC-Low and LAPIC), but system still "sticky" with single-job build
 and unresposnive with multiple-job build, and still there is strange bursts
 of CPU consumption from threads and processes which should be low-profile.

> If something of this helps, try going back to defaults and then disable power-saving settings, if any.
 I'll try to disable C2/C3 and turn off Turbo as next step...

--
Best regards,
 Lev                            mailto:[hidden email]

_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: Painfully slow compilation (read: "make buildworld buildkernel") on not-so-weak system

Lev Serebryakov
In reply to this post by Lev Serebryakov
Hello Lev,

Saturday, December 8, 2018, 2:13:03 PM, you wrote:


>  Even when build is single-job, system becomes unresponsive. With
> 4-job build running it could takes up to minute to switch screen's windows!
 And even with 1-job kernel build upsmon's connection to remote upsd
flickers! Unbelievable.

 Looks like each next compiler invocation is slower and more stressful than
previous one.

--
Best regards,
 Lev                            mailto:[hidden email]

_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: Painfully slow compilation (read: "make buildworld buildkernel") on not-so-weak system

Mateusz Guzik
On 12/8/18, Lev Serebryakov <[hidden email]> wrote:

> Hello Lev,
>
> Saturday, December 8, 2018, 2:13:03 PM, you wrote:
>
>
>>  Even when build is single-job, system becomes unresponsive. With
>> 4-job build running it could takes up to minute to switch screen's
>> windows!
>  And even with 1-job kernel build upsmon's connection to remote upsd
> flickers! Unbelievable.
>
>  Looks like each next compiler invocation is slower and more stressful than
> previous one.
>

Is this a fresh install?

Can you please narrow the problem down to a specific kernel revision?
Most importantly, does this show up with a 12.0 kernel?

I'm running one amd box and a number of intel boxes with various cpus,
no issues.

--
Mateusz Guzik <mjguzik gmail.com>
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[hidden email]"