linux-5.15/fragmentation_score_zone_weighted()
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
*参照元 [#gc2f4d05]
#backlinks
*説明 [#pd187890]
-パス: [[linux-5.15/mm/compaction.c]]
-ゾーンの断片化スコア(比重付き)を取得する。
**引数 [#i6d2543c]
-struct zone *zone
--メモリゾーン。
--[[linux-5.15/zone]]
**返り値 [#u2c23daa]
-unsigned int
--ゾーンの比重付き断片化スコア(0〜100)
**参考 [#ub76a588]
*実装 [#q38280bb]
/*
* A weighted zone's fragmentation score is the external...
* wrt to the COMPACTION_HPAGE_ORDER scaled by the zone'...
* returns a value in the range [0, 100].
*
* The scaling factor ensures that proactive compaction ...
* zones like ZONE_NORMAL, rather than smaller, speciali...
* ZONE_DMA32. For smaller zones, the score value remain...
* and thus never exceeds the high threshold for proacti...
*/
static unsigned int fragmentation_score_zone_weighted(st...
{
unsigned long score;
score = zone->present_pages * fragmentation_score_zone(...
return div64_ul(score, zone->zone_pgdat->node_present_p...
}
-比重のついたゾーンの断片化スコア = (ゾーンの持つページ数...
-ノードは複数のゾーンを持つので、大きいゾーンのスコアを重...
--[[linux-5.15/fragmentation_score_zone()]]
*コメント [#sbbf0ef8]
終了行:
*参照元 [#gc2f4d05]
#backlinks
*説明 [#pd187890]
-パス: [[linux-5.15/mm/compaction.c]]
-ゾーンの断片化スコア(比重付き)を取得する。
**引数 [#i6d2543c]
-struct zone *zone
--メモリゾーン。
--[[linux-5.15/zone]]
**返り値 [#u2c23daa]
-unsigned int
--ゾーンの比重付き断片化スコア(0〜100)
**参考 [#ub76a588]
*実装 [#q38280bb]
/*
* A weighted zone's fragmentation score is the external...
* wrt to the COMPACTION_HPAGE_ORDER scaled by the zone'...
* returns a value in the range [0, 100].
*
* The scaling factor ensures that proactive compaction ...
* zones like ZONE_NORMAL, rather than smaller, speciali...
* ZONE_DMA32. For smaller zones, the score value remain...
* and thus never exceeds the high threshold for proacti...
*/
static unsigned int fragmentation_score_zone_weighted(st...
{
unsigned long score;
score = zone->present_pages * fragmentation_score_zone(...
return div64_ul(score, zone->zone_pgdat->node_present_p...
}
-比重のついたゾーンの断片化スコア = (ゾーンの持つページ数...
-ノードは複数のゾーンを持つので、大きいゾーンのスコアを重...
--[[linux-5.15/fragmentation_score_zone()]]
*コメント [#sbbf0ef8]
ページ名: