New answers tagged

1 vote

How is 4kB RSS possible in Linux 4.x?

This is not an answer. (Text just too complicated to edit as a comment) I think that answering your question would first require to precise the exact meaning of the value reported as RSS in 4 series. ...
MC68020's user avatar
  • 7,704
0 votes

Is it possible to get a higher memory buff/cache usage after writing a lot of data to the disk?

To answer my own question: yes, it's possible. The following commands clear the cache and then write random data to a file: sysctl -w vm.drop_caches=3 ; drop memory cache free -m ...
tigrou's user avatar
  • 101
2 votes

Is it possible to get a higher memory buff/cache usage after writing a lot of data to the disk?

I expect Linux to temporarily keep in memory what has been written to the disk, in the case it need to be read again later. That’s correct, and that’s what you’re seeing here. It’s common for data ...
Stephen Kitt's user avatar
0 votes

How can I list AMDGPU VRAM usage by process?

First you have to determine your card number, this will typically be card0 or card1. If you only have one card in your system, you can look it up using ls -la /sys/class/drm. Replace card1 with ...
xdevs23's user avatar
  • 138
1 vote

Can you mount heap onto zram

Yes, that’s what zswap does — it swaps to zram instead of a volume or file on disk. It’s set up by default in a number of distributions nowadays.
Stephen Kitt's user avatar
0 votes

Linux disable RAM Cache

Like Artem I am very dubious about this. I am not specifically familiar with the MAC M1 architecture but have run Linux on lost of systems where the video uses main RAM - IME this has always been ...
symcbean's user avatar
  • 5,462
1 vote

Linux disable RAM Cache

I'm highly dubious about the provided rationale for what's going on. AFAIK, modern Macbooks do not have special separate RAM regions for RAM and VRAM, it's a single unified chunk of memory which can ...
Artem S. Tashkinov's user avatar
0 votes

The vmRSS value of /proc/$pid/status seems not accurate? Why?

It is not enough just to allocate memory, try to use this memory, try to fill it with some value in you app and the VmRSS will grow.
Kostiantyn Bushko's user avatar
0 votes

Limit memory usage for a single Linux process

I also like to limit the memory of some of my programs, so I have an updated script from my previous answer that works with systemd as the cgroup manager. In order not to clutter the other answer, I'...
JanKanis's user avatar
  • 1,049
1 vote

Discrepancy between values in htop and /proc/meminfo

My guess why the values differ is the following: htop "180G" value does not include system buffers and other memory used by operating system, while /proc/meminfo reports it as allocated ...
dataved's user avatar
  • 64

Top 50 recent answers are included