hoytech / vmtouch

Portable file system cache diagnostics and control
https://hoytech.com/vmtouch/
BSD 3-Clause "New" or "Revised" License
1.79k stars 210 forks source link

vmtouch: FATAL: tsearch: out of memory #66

Open vikaskedia opened 6 years ago

vikaskedia commented 6 years ago

On ubuntu 16.04 with 192 GB of ram:

I have a directory of size 43GB and 277071 files.

I want to keep this whole directory in RAM.

When i give the command

vmtouch -dl /program-file-dir/

I get the error: vmtouch: FATAL: tsearch: out of memory

hoytech commented 6 years ago

Interesting result, thank you for posting. I'll have to investigate this in more detail, 200k entries shouldn't be an issue for tsearch.

In the meantime, you could try the -h switch as long as you don't have too many hardlink duplicate entries. This should avoid calling tsearch at all.

kemeris2000 commented 5 years ago

I have same problem on CentOS 7.6 Directory size 3.8G with 240000 files vmtouch -dl /dir