Skip to content

High CPU Load #2092

@petrmachcz

Description

@petrmachcz

A have High CPU Load (> 20 %) with MkDocs + Material on Lenovo T460s (i5-6200U, 20 GB Ram). Notebook is hot, fan is humming and battery discharges quickly.

High load occurs during mkdocs serve. If I use mkdocs serve --no-livereload, load is OK.

High load happens even with minimal content.

SITE-TEST:

    docs:
        index.md
    mkdoc.yml

index.md:

# Hello World

mkdoc.yml

site_name: Test
theme:
    name: material
    language: cs

Load is normal, if I remove theme material.

My enviroment:

C:\Users\petrm>python --version
Python 3.8.2
C:\Users\petrm>python -m pip show mkdocs
Name: mkdocs
Version: 1.1
Summary: Project documentation with Markdown.
Home-page: https://www.mkdocs.org
Author: Tom Christie
Author-email: tom@tomchristie.com
License: BSD
Location: c:\users\petrm\appdata\roaming\python\python38\site-packages
Requires: PyYAML, livereload, lunr, Markdown, click, tornado, Jinja2
Required-by: mkdocs-material
C:\Users\petrm>python -m pip show mkdocs-material
Name: mkdocs-material
Version: 5.1.4
Summary: A Material Design theme for MkDocs
Home-page: https://squidfunk.github.io/mkdocs-material/
Author: Martin Donath
Author-email: martin.donath@squidfunk.com
License: MIT
Location: c:\users\petrm\appdata\roaming\python\python38\site-packages
Requires: pymdown-extensions, mkdocs, Pygments, mkdocs-material-extensions, markdown
Required-by: mkdocs-material-extensions
C:\Users\petrm>systeminfo

Host Name:                 T460S-WIN
OS Name:                   Microsoft Windows 10 Pro
OS Version:                10.0.18362 N/A Build 18362
OS Manufacturer:           Microsoft Corporation
OS Configuration:          Standalone Workstation
OS Build Type:             Multiprocessor Free
Registered Owner:          Uživatel systému Windows
Registered Organization:
Product ID:                00342-50620-20329-AAOEM
Original Install Date:     29.10.2019, 23:22:13
System Boot Time:          22.04.2020, 12:13:28
System Manufacturer:       LENOVO
System Model:              20FAS47X00
System Type:               x64-based PC
Processor(s):              1 Processor(s) Installed.
                           [01]: Intel64 Family 6 Model 78 Stepping 3 GenuineIntel ~2300 Mhz
BIOS Version:              LENOVO N1CET45W (1.13 ), 02.06.2016
Windows Directory:         C:\WINDOWS
System Directory:          C:\WINDOWS\system32
Boot Device:               \Device\HarddiskVolume1
System Locale:             cs;Čeština
Input Locale:              cs;Čeština
Time Zone:                 (UTC+01:00) Praha, Bratislava, Budapešť, Bělehrad, Lublaň
Total Physical Memory:     19 907 MB
Available Physical Memory: 14 060 MB
Virtual Memory: Max Size:  22 851 MB
Virtual Memory: Available: 16 008 MB
Virtual Memory: In Use:    6 843 MB
Page File Location(s):     C:\pagefile.sys
Domain:                    WORKGROUP
Logon Server:              \\T460S-WIN

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions