xlab-uiuc / memtis

Tiered memory management
0 stars 0 forks source link

Proper values for watermarks? #9

Open yulistic opened 5 months ago

yulistic commented 5 months ago

What are the proper values of the WATERMARKs in Memtis?

#define MIN_WATERMARK_LOWER_LIMIT   128 * 100 // 50MB
#define MIN_WATERMARK_UPPER_LIMIT   2560 * 100 // 1000MB
#define MAX_WATERMARK_LOWER_LIMIT   256 * 100 // 100MB
#define MAX_WATERMARK_UPPER_LIMIT   3840 * 100 // 1500MB

https://github.com/xlab-uiuc/memtis/blob/50560af4c483045d07165a5a1368cb822f2c5cf6/linux/mm/htmm_migrater.c#L22

yulistic commented 5 months ago

We may use 1/10 of the original values. For example, RSS of our Liblinear benchmark is 1/10 of that of the Memtis' experimental setup.

yulistic commented 5 months ago

For the MIN_WATERMARK 3% of the DRAM (top-tier) capacity is used and For the MAX_WATERMARK, 2% is used. https://github.com/xlab-uiuc/memtis/blob/50560af4c483045d07165a5a1368cb822f2c5cf6/linux/mm/htmm_migrater.c#L81