Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Prozessorlast von Programmen begrenzen
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
flammenflitzer
Advocate
Advocate


Joined: 25 Nov 2003
Posts: 3516
Location: Berlin

PostPosted: Sat Sep 07, 2024 6:29 am    Post subject: Prozessorlast von Programmen begrenzen Reply with quote

Hallo, ich suche eine Möglichkeit, um die CPU Last von Programmen zu begrenzen. Beispielsweise lastet handbrake (flatpak) alle Kerne fast permanent zu 100% aus. cpulimit würde m.E. nicht greifen, da ich ja nicht die Zeit, sondern die Last begrenzen will. Ich bin der Meinung vor geraumer Zeit gelesen zu haben, das es möglich ist einem Programm eine bestimmte Anzahl von Kernen zuzuweisen bzw. die Auslastung der benutzten Kerne prozentual zu begrenzen....
Back to top
View user's profile Send private message
firefly
Watchman
Watchman


Joined: 31 Oct 2002
Posts: 5279

PostPosted: Sat Sep 07, 2024 3:25 pm    Post subject: Reply with quote

eine möglichkeit ist mit nice dem process eine geringere "priorität" zu geben wodurch andere Prozesse eher vorrang haben.
Im falle von Handbrake ist das ganze eher positiv zu sehen, weil dadurch der encoding process schneller fertig ist.
Falls deine GPU und Handbrake GPU video encoding für den verwendeten video codec untersützt könnte das auch helfen die prozessorlast zu reduzieren.
Wobei dadurch aber unter umständen die Qualität leiden kann.

Wenn VA-API genutzt wird, kann ma via vainfo herausfinden für welche video codec hw encoding untertützt wird.
In der liste von "Supported profile and entrypoints" sind die einträge, welche den text "VAEntrypointEnc" enthalten, einträge für HW encoding
_________________
Ein Ring, sie zu knechten, sie alle zu finden,
Ins Dunkel zu treiben und ewig zu binden
Im Lande Mordor, wo die Schatten drohn.
Back to top
View user's profile Send private message
Erdie
Advocate
Advocate


Joined: 20 May 2004
Posts: 2625
Location: Heidelberg - Germany

PostPosted: Sat Sep 07, 2024 4:31 pm    Post subject: Reply with quote

Als letzte, aber evtl. umständliche Möglichkeit könnte ich mir vorstellen, eine Linux VM zu nutzen z. B, mit Virtualbox. Dann könne man alles: Speicher, CPU Kerne und Last beliebig zuweisen und steuern.
_________________
Desktop AMD Ryzen 9 5900X 32GB RAM, Asus GF GTX 1060.
Notebook Tuxedo Pulse 15 Gen1 AMD Ryzen 7 4800H mit Radeon Vega 7
Raspberry Pi 1 + 2 + 3B+ + Zero W
Back to top
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1634
Location: Germany

PostPosted: Sat Sep 07, 2024 11:46 pm    Post subject: Reply with quote

Gibt es die dort genannte Option noch? https://www.macxdvd.com/mac-dvd-video-converter-how-to/handbrake-high-cpu-usage.htm

Quote:


1.Open Handbrake, add the source video or DVD to convert. Select all the settings for the convert and then click the Video tab and find the Advanced Options (Windows) or Additional Options (macOS).
2.Then add the following text to the end of the entry in the box at bottom of advance settings: -x threads=1 to let Handbrake use one CPU thread during the encoding.
3.You can also use the --encoder-preset=veryslow to help improve the Handbrake high CPU usage and reduce the CPU heat while keeping good output quality.
4.If the threads settings won't work, also try to add "pools=x" to "Advanced Options" under the "Video" tab.



Und da sind noch taskset und cpuset
_________________
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Back to top
View user's profile Send private message
flammenflitzer
Advocate
Advocate


Joined: 25 Nov 2003
Posts: 3516
Location: Berlin

PostPosted: Sun Sep 08, 2024 6:45 pm    Post subject: Reply with quote

Danke
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum