xlab-uiuc / memtis

Tiered memory management
0 stars 0 forks source link

Demotion failed while running application (tested with Liblinear) #8

Open yulistic opened 4 weeks ago

yulistic commented 4 weeks ago

Memtis does not demote pages when the top-tier memory is full. Of course, promotions do not occur.

yulistic commented 4 weeks ago

meta->idx >= memcg->warm_threshold This condition is always true. It prevents Memtis from adding pages to the demote_pages list.

Here: https://github.com/xlab-uiuc/memtis/blob/50560af4c483045d07165a5a1368cb822f2c5cf6/linux/mm/htmm_migrater.c#L403 and Here: https://github.com/xlab-uiuc/memtis/blob/50560af4c483045d07165a5a1368cb822f2c5cf6/linux/mm/htmm_migrater.c#L408

yulistic commented 4 weeks ago

Underflow of idx occurs when running liblinear with 8 threads.

image
yulistic commented 4 weeks ago

The idx value, 4294967295, is 0xffffffff (-1). It may indicate pages not mapped. If so, we don't need to fix it.

yulistic commented 4 weeks ago

Let's check whether the cooling mechanism works.