Hacker News new | ask | show | jobs
by nisa 752 days ago
> This is an indication to me that something has gone very wrong in your code base.

I'm not sure on what planet all of these people here live that they have success with Linux swap. It's been broken for me forever and the first thing I do is disable it everywhere.

3 comments

Linux swap has been fixed on Chromebooks for years thanks to MGLRU. It's upstream now and you can try it with a recent enough kernel with

  echo y >/sys/kernel/mm/lru_gen/enabled
On a planet where the heap size of the JVM is properly set.
I don't use Java often, but when I do, I have to look up again how the heap settings work.
It’s just -xXxXxX360NoScopexXxXxHeapSize=69G
There should be at least one : in there.

(IIRC these options are used like -XX:foo=bar)

(Edit - no, but some do use : instead of = I guess)

100% agree