What's using my swap?

JonM

Dabbler
Joined
Mar 29, 2017
Messages
19
Hi all,

What's the best way to figure out which processes might be using swap space?

I'm trying to find out why it's being used at all right now... at the moment it looks like I'm using about 60% of my swap space but I've also got 8GB of free memory that isn't being used.

Any advice on finding out what's going on?

thanks,
Jon
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
Do you run Tautulli?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
I noticed that mine is leaking memory since a few weeks back (unfortunately I can't nail down a good version as I only keep 2 weeks of snapshots and rolling back to the oldest seems to still leak, although slower than the current version), so when it gets above 10G, the system seems to push nginx and some other items into swap to give room to the jail (and other stuff).

Have a look at htop and see if tautulli is high on the list after using F6 and selecting M_RESIDENT.

Then check top -w then type o then type swap and Enter to see the swap consumers at the top of that list.
 

JonM

Dabbler
Joined
Mar 29, 2017
Messages
19
Looks like that could be it.... Taut was using around 6Gb memory so does seem like it's leaking.
Odd that it's not moving back into memory from swap with so much free memory lying around though isn't it?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
Odd that it's not moving back into memory from swap with so much free memory lying around though isn't it?
I'm not sure that's how swapping works... it will only swap back out if that memory is called upon for use.
 

hescominsoon

Patron
Joined
Jul 27, 2016
Messages
456
Hi all,

What's the best way to figure out which processes might be using swap space?

I'm trying to find out why it's being used at all right now... at the moment it looks like I'm using about 60% of my swap space but I've also got 8GB of free memory that isn't being used.

Any advice on finding out what's going on?

thanks,
Jon
what are your system specs? especially storage and ram. also could you post a screenshot of your ram usage as noted above?
 

JonM

Dabbler
Joined
Mar 29, 2017
Messages
19
Hello!

No problem, system is 16TB across 6 WD-Reds with 32GB memory, core i3-6100 running TrueNAS-12.0-U2.1

1616595735622.png


Swap use has dropped a bit now that I've bounced tautulli

1616595873432.png
 
Top