Re: Load 0.20 on a freshly installed idle system

From: Paul Procacci <pprocacci_at_gmail.com>
Date: Sat, 21 Jan 2023 00:56:14 UTC
I'll concede it probably isn't a 5 second window as what I've provided is
for OpenBSD, but it's still a measurement of processes in the run queue -
that's for sure.
I'm being lazy and don't want to look at the source code.  That's something
you could do.

Thanks,
Paul Procacci

On Fri, Jan 20, 2023 at 7:28 PM Stavros Filargyropoulos <stav@stav.cc>
wrote:

> Thanks Paul, but If that was the case, then running 5 `top -SH` with a
> refresh of 1 second, should increase the load to x4. Which is not what I
> see.
>
> This answer seems a bit vague. Is that the best explanation we have? Do
> you mean to say that there is not a single freebsd box out there that has a
> load of less than 0.20?
>
> I'm pretty sure that last time I run FreeBSD that wasn't the case. Also
> haven't seen this load in idle system in any other *BSDs.
>
> Thanks for taking a look anyway.
>
> On Fri, Jan 20, 2023 at 4:19 PM Paul Procacci <pprocacci@gmail.com> wrote:
>
>> Stavros,
>>
>> Load averages by themselves mean very little.
>> It's not a figure of cpu usage if that's what you're worried about.
>>
>> Load averages on BSD are simply processes which have wanted to run at
>> least once in the most recent 5-second window, with a degradation over
>> time.[1]
>>
>> Unless you're having a specific problem, I'd guess to say there is no
>> problem here at all.
>>
>> Thanks,
>> Paul Procacci
>>
>> [1] - http://www.undeadly.org/cgi?action=article&sid=20090715034920
>>
>>
>> On Fri, Jan 20, 2023 at 6:59 PM Stavros Filargyropoulos <stav@stav.cc>
>> wrote:
>>
>>> Thanks Paul.
>>>
>>> Yeah, I used the `-SH` flags. Don't see anything suspicious.
>>>
>>> This is is the output of the `systat`: Not sure I understand much from it
>>>
>>>     2 users    Load  0.20  0.15  0.06                  Jan 20 15:54:53
>>>    Mem usage:   1%Phy  0%Kmem                           VN PAGER   SWAP
>>> PAGER
>>> Mem:      REAL           VIRTUAL                        in   out     in
>>>   out
>>>        Tot   Share     Tot    Share     Free   count
>>> Act 33476K  10672K    513G   12612K   31367M   pages
>>> All 35920K  12928K    513G   47112K                       ioflt
>>>  Interrupts
>>> Proc:                                                     cow      34
>>> total
>>>   r   p   d    s   w   Csw  Trp  Sys  Int  Sof  Flt       zfod
>>>  uart0 4
>>>               25       118    1   21    5   13    1       ozfod    10
>>> cpu0:timer
>>>                                                          %ozfod     9
>>> cpu1:timer
>>>  0.0%Sys   0.0%Intr  0.0%User  0.0%Nice  100%Idle         daefr     6
>>> cpu2:timer
>>> |    |    |    |    |    |    |    |    |    |    |       prcfr     4
>>> cpu3:timer
>>>                                                           totfr     4
>>> xhci0 128
>>>                                        229 dtbuf          react
>>> ahci0 129
>>> Namei     Name-cache   Dir-cache    619780 maxvn          pdwak
>>> nvme0:admi
>>>    Calls    hits   %    hits   %       805 numvn        5 pdpgs
>>> nvme0:io0
>>>        7       7 100                    52 frevn          intrn
>>> nvme0:io1
>>>                                                      355M wire
>>>  nvme0:io2
>>> Disks  nvd0  ada0  ada1  ada2  ada3  ada4   da0       17M act
>>> nvme0:io3
>>> KB/t  16.00  0.00  0.00  0.00  0.00  0.00  0.00     2880K inact
>>> igb0:rxq0
>>> tps       0     0     0     0     0     0     0         0 laund
>>> igb0:rxq1
>>> MB/s   0.01  0.00  0.00  0.00  0.00  0.00  0.00       31G free      1
>>> igb0:rxq2
>>> %busy     0     0     0     0     0     0     0      142M buf
>>> igb0:rxq3
>>>
>>> igb0:aq
>>>
>>> And the output of `top -SH` for reference:
>>>
>>> last pid:  1508;  load averages:  0.25,  0.22,  0.10
>>>
>>>                                                                 up
>>> 0+00:08:13  15:57:54
>>> 131 threads:   5 running, 106 sleeping, 20 waiting
>>> CPU:  0.1% user,  0.0% nice,  0.0% system,  0.0% interrupt, 99.9% idle
>>> Mem: 16M Active, 3032K Inact, 355M Wired, 142M Buf, 31G Free
>>> Swap: 3962M Total, 3962M Free
>>>
>>>   PID USERNAME    PRI NICE   SIZE    RES STATE    C   TIME    WCPU
>>> COMMAND
>>>    11 root        155 ki31     0B    64K RUN      2   8:12  99.99%
>>> idle{idle: cpu2}
>>>    11 root        155 ki31     0B    64K CPU3     3   8:11  99.98%
>>> idle{idle: cpu3}
>>>    11 root        155 ki31     0B    64K CPU0     0   8:12  99.97%
>>> idle{idle: cpu0}
>>>    11 root        155 ki31     0B    64K CPU1     1   8:11  99.96%
>>> idle{idle: cpu1}
>>>     0 root        -76    -     0B   640K -        0   0:00   0.04%
>>> kernel{if_config_tqg_0}
>>>  1508 stavros      20    0    14M  3812K CPU2     2   0:00   0.02% top
>>>  1493 stavros      20    0    15M  5080K select   1   0:00   0.02% tmux
>>>    12 root        -60    -     0B   320K WAIT     3   0:01   0.01%
>>> intr{swi4: clock (0)}
>>>     5 root        -16    -     0B    16K -        0   0:00   0.01%
>>> rand_harvestq
>>>     6 root        -16    -     0B    48K psleep   0   0:00   0.00%
>>> pagedaemon{dom0}
>>>  1440 stavros      20    0    21M  9440K select   3   0:00   0.00% sshd
>>>  1404 root         20    0    18M  6988K select   2   0:00   0.00%
>>> sendmail
>>>    15 root        -72    -     0B    96K -        3   0:00   0.00%
>>> usb{usbus0}
>>>    12 root        -60    -     0B   320K WAIT     2   0:00   0.00%
>>> intr{swi4: clock (2)}
>>>    12 root        -88    -     0B   320K WAIT     2   0:00   0.00%
>>> intr{irq128: xhci0}
>>>     8 root         20    -     0B   144K sdflus   3   0:00   0.00%
>>> bufdaemon{/ worker}
>>>    12 root        -60    -     0B   320K WAIT     1   0:00   0.00%
>>> intr{swi4: clock (1)}
>>>     0 root        -76    -     0B   640K -        2   0:00   0.00%
>>> kernel{if_io_tqg_2}
>>>     8 root        -16    -     0B   144K -        1   0:00   0.00%
>>> bufdaemon{bufspacedaemon-0}
>>>     9 root         16    -     0B    16K syncer   3   0:00   0.00% syncer
>>>    12 root        -60    -     0B   320K WAIT     3   0:00   0.00%
>>> intr{swi4: clock (3)}
>>>     8 root        -16    -     0B   144K psleep   2   0:00   0.00%
>>> bufdaemon{bufdaemon}
>>>     8 root        -16    -     0B   144K -        0   0:00   0.00%
>>> bufdaemon{bufspacedaemon-1}
>>>
>>> Thanks,
>>> Stavros
>>>
>>>
>>> On Fri, Jan 20, 2023 at 2:03 PM Paul Procacci <pprocacci@gmail.com>
>>> wrote:
>>>
>>>> What flags have you included with top?
>>>>
>>>> By default `top` doesn't show any kernel related processes.  `top -SH`
>>>> is useful in this respect and others flags may be useful as well.
>>>>
>>>> systat -vmstat
>>>>
>>>> ^^  Another command that I like.  Also may give you insight.
>>>>
>>>> Thanks,
>>>> Paul Procacci
>>>>
>>>> On Fri, Jan 20, 2023 at 4:33 PM Stavros Filargyropoulos <stav@stav.cc>
>>>> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I just installed 13.1 on a system, and the load is at 0.20 at all
>>>>> times, although nothing is running and the CPU is 100% free.
>>>>>
>>>>> `ps aux` and `top` don't show anything of interest either.
>>>>>
>>>>> For what's worth it, the motherboard is a Supermicro X12STL-IF and the
>>>>> CPU a Xeon 2314.
>>>>>
>>>>> Any ideas/commands that will help me troubleshoot this further?
>>>>>
>>>>> Thanks,
>>>>> Stavros
>>>>>
>>>>
>>>>
>>>> --
>>>> __________________
>>>>
>>>> :(){ :|:& };:
>>>>
>>>
>>
>> --
>> __________________
>>
>> :(){ :|:& };:
>>
>

-- 
__________________

:(){ :|:& };: