linux-5.15/compact_gap()
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
*参照元 [#ue26f4af]
#backlinks
*説明 [#u5a5a592]
-パス: [[linux-5.15/include/linux/compaction.h]]
-オーダーに応じて、コンパクションを成功させるために必要な...
**引数 [#od9311f3]
-unsigned int order
--オーダー
**返り値 [#g8f269fd]
-unsigned long
--コンパクションを成功させるために必要なページ数を返す。
**参考 [#fcf2f416]
*実装 [#cac23c03]
/*
* Number of free order-0 pages that should be available...
* to make sure compaction has reasonable chance of not ...
* pages that it needs to isolate as migration target du...
*/
static inline unsigned long compact_gap(unsigned int ord...
{
/*
* Although all the isolations for migration are tempor...
* free scanner may have up to 1 << order pages on its ...
* try to split an (order - 1) free page. At that point...
* 1 << order might not be enough, so it's safer to req...
* amount. Note that the number of pages on the list is...
* effectively limited by COMPACT_CLUSTER_MAX, as that'...
* that the migrate scanner can have isolated on migrat...
* scanner is only invoked when the number of isolated ...
* lower than that. But it's not worth to complicate th...
* as a bigger gap for higher orders than strictly nece...
* improve chances of compaction success.
*/
return 2UL << order;
}
(※)元の英文と適当訳です。
(関数の説明)
Number of free order-0 pages that should be available abo...
to make sure compaction has reasonable chance of not runn...
pages that it needs to isolate as migration target during...
コンパクション時に空きページ(migration対象として分離する...
watermarkを超えるorder 0の空きページ数。
(2 << orderの説明)
Although all the isolations for migration are temporary, ...
free scanner may have up to 1 << order pages on its list ...
try to split an (order - 1) free page. At that point, a g...
1 << order might not be enough, so it's safer to require ...
amount. Note that the number of pages on the list is also
effectively limited by COMPACT_CLUSTER_MAX, as that's the...
that the migrate scanner can have isolated on migrate lis...
scanner is only invoked when the number of isolated free ...
lower than that. But it's not worth to complicate the for...
as a bigger gap for higher orders than strictly necessary...
improve chances of compaction success.
移行のための分離は全て一時的ですが、compactionのフリース...
この観点から(1 << order)ページのギャップでは足りないので...
フリースキャナリストのページ数も、migrationのスキャナーが...
(COMPACT_CLUSTER_MAX、値は32)に実質的に制限されることに...
しかし式を複雑にする価値はありません。なぜなら厳密に必要...
*コメント [#lcaca1e6]
終了行:
*参照元 [#ue26f4af]
#backlinks
*説明 [#u5a5a592]
-パス: [[linux-5.15/include/linux/compaction.h]]
-オーダーに応じて、コンパクションを成功させるために必要な...
**引数 [#od9311f3]
-unsigned int order
--オーダー
**返り値 [#g8f269fd]
-unsigned long
--コンパクションを成功させるために必要なページ数を返す。
**参考 [#fcf2f416]
*実装 [#cac23c03]
/*
* Number of free order-0 pages that should be available...
* to make sure compaction has reasonable chance of not ...
* pages that it needs to isolate as migration target du...
*/
static inline unsigned long compact_gap(unsigned int ord...
{
/*
* Although all the isolations for migration are tempor...
* free scanner may have up to 1 << order pages on its ...
* try to split an (order - 1) free page. At that point...
* 1 << order might not be enough, so it's safer to req...
* amount. Note that the number of pages on the list is...
* effectively limited by COMPACT_CLUSTER_MAX, as that'...
* that the migrate scanner can have isolated on migrat...
* scanner is only invoked when the number of isolated ...
* lower than that. But it's not worth to complicate th...
* as a bigger gap for higher orders than strictly nece...
* improve chances of compaction success.
*/
return 2UL << order;
}
(※)元の英文と適当訳です。
(関数の説明)
Number of free order-0 pages that should be available abo...
to make sure compaction has reasonable chance of not runn...
pages that it needs to isolate as migration target during...
コンパクション時に空きページ(migration対象として分離する...
watermarkを超えるorder 0の空きページ数。
(2 << orderの説明)
Although all the isolations for migration are temporary, ...
free scanner may have up to 1 << order pages on its list ...
try to split an (order - 1) free page. At that point, a g...
1 << order might not be enough, so it's safer to require ...
amount. Note that the number of pages on the list is also
effectively limited by COMPACT_CLUSTER_MAX, as that's the...
that the migrate scanner can have isolated on migrate lis...
scanner is only invoked when the number of isolated free ...
lower than that. But it's not worth to complicate the for...
as a bigger gap for higher orders than strictly necessary...
improve chances of compaction success.
移行のための分離は全て一時的ですが、compactionのフリース...
この観点から(1 << order)ページのギャップでは足りないので...
フリースキャナリストのページ数も、migrationのスキャナーが...
(COMPACT_CLUSTER_MAX、値は32)に実質的に制限されることに...
しかし式を複雑にする価値はありません。なぜなら厳密に必要...
*コメント [#lcaca1e6]
ページ名: