I'm investigating some application issues on a Linux system and noticed this around the time of the most recent problem, but not close enough to be definitively related:
Jun 7 17:51:49 localhost kernel: shrink_slab: nr=-155456000
Jun 7 17:51:49 localhost kernel: shrink_slab: nr=-157859400
Jun 7 17:51:49 localhost kernel: shrink_slab: nr=-157833400
Jun 8 06:20:23 localhost kernel: shrink_slab: nr=-284172800
What is this? Googling isn't helping, I get that it's something with VM, but why is it suddenly showing up in /var/log/messages?
Edit: I take it it's showing this because the number of pages it could free ("nr") is negative. Which is presumably a bad thing. I found patches for newer kernels that display a more useful message to this effect. Still not sure what this means though, or what I need to do about it.
Your message is generated by the slab allocator, the mechanism used by the Linux kernel to manage the portion of memory it needs for itself (not for user space processes). Originally it was written by Jeff Bonwick for Solaris, and it's probably easiest to understand by reading Bonwick(94) (PDF).
If you are wondering about the name, in his blog Bonwick eventually revealed the story behind it.
When you're looking at the Linux specifics, the article Anatomy of the Linux slab allocator (link currently dead, see archive.org for a copy) should cover that. If you want to understand management of user-space memory as well, Mel Gorman, Understanding the Linux Virtual Memory Manager gives even more detail.
For German speaking readers, there's an excellent introduction in the German Wikipedia Article on the slab allocator.
(Links last checked 2021-04-19)