Revert "sysinfo, procfs: Support memory info partially"
This reverts commit 8f74888f87.
Change-Id: I65530dd8a4e1af2ca47cb02c02f5c54a9b4595a5
This commit is contained in:
@ -1,46 +0,0 @@
|
||||
【Issue#1389 動作確認】
|
||||
□ テスト内容
|
||||
本Issueの対応で、sysinfo()と/proc/meminfo の下記項目においてMcKernelの情報を
|
||||
返すようにした。
|
||||
[sysinfo]
|
||||
totalram : rusage_global の total_memory
|
||||
freeram : rusage_global の total_memory - usage_memory
|
||||
mem_unit : 常に1
|
||||
[/proc/meminfo]
|
||||
MemTotal : rusage_global の total_memory
|
||||
MemFree : rusage_global の total_memory - usage_memory
|
||||
SwapTotal : 常に0
|
||||
SwapFree : 常に0
|
||||
CommitLimit : rusage_global の total_memory - usage_memory
|
||||
Committed_AS : rusage_global の usage_memory
|
||||
|
||||
1. 本Issueで対応したsysinfo() と /proc/meminfo の値が想定どおりとなっていることを確認
|
||||
McKernelへのメモリ割り当てを 10G@0,10G@1 とした状態で下記プログラムを実行
|
||||
C1389T01: sysinfo() で取得される値が下記のとおりであることを確認
|
||||
totalram : 20GiB * 0.95 以上、20GiB 未満であること
|
||||
freeram : totralram * 0.95 以上、totalram 未満であること
|
||||
mem_unit : 1 であること
|
||||
C1389T02: /proc/meminfo から取得される値が下記のとおりであることを確認
|
||||
MemTotal : 20GiB * 0.95 以上、20GiB 未満であること
|
||||
MemFree : MemTotal * 0.95 以上、MemTotal 未満であること
|
||||
SwapTotal : 0 であること
|
||||
SwapFree : 0 であること
|
||||
CommitLimit : MemFreeと同値であること
|
||||
Committed_AS : MemTotal - MemFree と同値であること
|
||||
|
||||
2. 本Issueで対応したsysinfo() の項目を利用する以下のLTPを実行し、PASSすることを確認
|
||||
- mtest01 -p80
|
||||
- mtest01 -p80 -w
|
||||
- mem01
|
||||
|
||||
□ 実行手順
|
||||
$ make test
|
||||
|
||||
McKernelのインストール先や、OSTEST, LTPの配置場所は、
|
||||
$HOME/.mck_test_config を参照している
|
||||
.mck_test_config は、McKernelをビルドした際に生成されるmck_test_config.sample ファイルを
|
||||
$HOMEにコピーし、適宜編集する
|
||||
|
||||
□ 実行結果
|
||||
x86_64_result.log aarch64_result.log 参照。
|
||||
すべての項目をPASSしていることを確認。
|
||||
Reference in New Issue
Block a user