vmtouch
vmtouch copied to clipboard
vmtouch: FATAL: tsearch: out of memory
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
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.
I have same problem on CentOS 7.6
Directory size 3.8G with 240000 files
vmtouch -dl /dir