Ticket #23 (assigned defect)

Opened 2 years ago

Last modified 2 years ago

Add tmpfs storage to used memory count

Reported by: swapspace-bugs@digital-trauma.de Assigned to: jtv (accepted)
Priority: high Milestone:
Component: component1 Version:
Severity: normal Keywords:
Cc:

Description (Last modified by jtv)

Hi, I wrote a gentoo ebuild[1] for this daemon, and while testing it I noticed that swapspace ignores memory allocated by tmpfs. On my machines /tmp and /var/tmp are in tmpfs, and if they grow too large swapspace does nothing and the whole system goes OOM.

See /usr/src/linux/Documentation/filesystems/tmpfs.txt if you are unfamiliar with tmpfs, it is a real timesaver for old PC hardware with slow discs.

1 http://svn.digital-trauma.de/gentoo/trunk/sys-apps/swapspace

Change History

04/23/07 11:10:45 changed by jtv

  • owner changed from somebody to jtv.
  • status changed from new to assigned.
  • description changed.

I've run swapspace with tmpfs for a long time... I don't see how its memory usage could fail to be counted. But there can be problems with tmpfs and swap IIRC. Since native Linux filesystems live squarely in kernel space, they aren't really suited for living on top of swap instead of under it.

Are you sure the problem isn't that tmpfs is being allowed to grow too large compared to physical memory?