vmtouch icon indicating copy to clipboard operation
vmtouch copied to clipboard

vmtouch: FATAL: tsearch: out of memory

Open vikaskedia opened this issue 6 years ago • 2 comments

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

vikaskedia avatar Jun 17 '18 12:06 vikaskedia

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.

hoytech avatar Jun 18 '18 02:06 hoytech

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

kemeris2000 avatar Mar 04 '19 11:03 kemeris2000