為什麼linux中sched autogroup enabled開啟後會造成效能下降?

時間 2021-07-15 15:35:51

1樓:

參考sched(7):

sched(7) - Linux manual page

The effect of autogrouping is that the two

groups will each receive half of the CPU cycles. That is, the video

player will receive 50% of the CPU cycles, rather than just 9% of the

cycles, which would likely lead to degraded video playback. The sit‐

uation on an SMP system is more complex, but the general effect is

the same: the scheduler distributes CPU cycles across task groups

such that an autogroup that contains a large number of CPU-bound pro‐

cesses does not end up hogging CPU cycles at the expense of the other

jobs on the system

autogroup是為桌面互動優化的,顯然對unixbench是一種負優化。推測你的benchmark環境應該有不止乙個session(比如有多個console視窗)。

總的來說關掉autogrouping應該是很大程度上簡化了CFS的排程邏輯。

gaclib 在 Linux 中為什麼要依賴gtk?

gtk 視窗和事件用 gdk 就夠了吧 還可以用 efl 的 ecore evas這麼說來這個庫就只是畫畫控制項?畫控制項,有 Qt Quick 的水平麼? Mili 目前的計畫是Gtk port處理視窗和事件部分,具體描畫用Cairo。至於為什麼上Gtk純粹是因為Xlib Xcb處理很多東西需要弄...

為什麼Linux耗電?

eechen Intel的Linux工程師開發有PowerTop這個工具可以檢視Linux耗電程式排行。Android在設定電量裡也有耗電應用排行。 flyer punk xiaomi pro 13 之前用win10 home版,電腦還有點溫度,換了linux,直接是冰的,感覺Linux很省電,都不...

為什麼Linux上的IDE沒有vs中的win32和x64選項?

貓科猿 首先現在的電腦cpu都是64位的,當然也相容32的模式。windows相容性好,眾所周知。32位和64位一般都沒啥問題。但linux好像不是。反正現在的ubuntu越新,對32位支援越差。以前用ubuntu12.04時,有的軟體用沒啥問題,但到了14.04,有的就用不了了,需要32位的有些軟...