Skip to contentSkip to conversation

don't allow tmpfs to page out

Q Michael Buesch 3 participants 9 messages Jul 14, 2004

lore
Share & tools
lore
#0 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Is it possible to disable the tmpfs feature to page out memory to swap?
I didn't find any mount option or something like that for it in the documentation.

- --
Regards Michael Buesch [ http://www.tuxsoft.de.vu ]

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFA9UklFGK1OIvVOP4RAvlyAKC0Aoug0HRSa8zRQuFAH8ufFY1C+wCg0ycG uMXEYVntwUiiueZloUnizPo=
=t1IM
-----END PGP SIGNATURE-----

#1 lore raw

Good afternoon, Michael,

Quoted 4 lines · Michael Buesch

Is it possible to disable the tmpfs feature to page out memory to swap?
I didn't find any mount option or something like that for it in the documentation.

I suspect a regular ramdisk, as opposed to tmpfs, would do what
you want.
Cheers,
- Bill

---------------------------------------------------------------------------
"Heisenberg _may_ have slept here."
(Courtesy of Rick Stevens <[email protected]>)
--------------------------------------------------------------------------
William Stearns ([email protected]). Mason, Buildkernel, freedups, p0f,
rsync-backup, ssh-keyinstall, dns-check, more at: http://www.stearns.org
--------------------------------------------------------------------------

#2 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoting William Stearns <[email protected]>:

Quoted 1 line

Good afternoon, Michael,

Hi William,

Quoted 2 lines

I suspect a regular ramdisk, as opposed to tmpfs, would do what
you want.

No, since a regular ramdisk is static in size.

Quoted 2 lines

Cheers,
- Bill

- --
Regards Michael Buesch [ http://www.tuxsoft.de.vu ]

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFA9VZvFGK1OIvVOP4RAku8AJ92P7fjMBBAkf36vKTlYQvH1XluzQCfQ573 LQyLzVpA5o5UfAH/3G2Aq3s=
=jzzh
-----END PGP SIGNATURE-----

#3 lore raw
Quoted 4 lines · Michael Buesch

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoting William Stearns <[email protected]>:

Quoted 8 lines
Quoted 1 line

Good afternoon, Michael,

Hi William,

Quoted 2 lines

I suspect a regular ramdisk, as opposed to tmpfs, would do what
you want.

No, since a regular ramdisk is static in size.

which is why there is ramfs .. :)

#4 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoting Arjan van de Ven <[email protected]>:

Quoted 7 lines · Michael Buesch
Quoted 6 lines

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoting William Stearns <[email protected]>:

Quoted 1 line

Good afternoon, Michael,

Quoted 8 lines
Quoted 6 lines

Hi William,

Quoted 2 lines

I suspect a regular ramdisk, as opposed to tmpfs, would do what
you want.

No, since a regular ramdisk is static in size.

which is why there is ramfs .. :)

In 2.4, too? Can't find it.
What's the CONFIG_* of ramfs?

- --
Regards Michael Buesch [ http://www.tuxsoft.de.vu ]

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFA9VlGFGK1OIvVOP4RAn3HAJ9fU0KX6FNJDQwn9gVFGKA506eivgCfd28S zBmNkGBYQd4lmSmUVSzvmGA=
=eejH
-----END PGP SIGNATURE-----

#5 lore raw
Quoted 5 lines · Michael Buesch
Quoted 2 lines

which is why there is ramfs .. :)

In 2.4, too? Can't find it.
What's the CONFIG_* of ramfs?

CONFIG_RAMFS

#6 lore raw

Quoting Arjan van de Ven <[email protected]>:

Quoted 8 lines · Michael Buesch
Quoted 5 lines
Quoted 2 lines

which is why there is ramfs .. :)

In 2.4, too? Can't find it.
What's the CONFIG_* of ramfs?

CONFIG_RAMFS

Ok, that's the thing /dev/ram* is about, isn't it? I already have a /dev/ram mounted somewhere, but it's not dynamic in size. What am I missing. I'm kind of confused now. :)

--
Regards Michael Buesch [ http://www.tuxsoft.de.vu ]

#7 lore raw
Quoted 11 lines · Michael Buesch

Quoting Arjan van de Ven <[email protected]>:

Quoted 8 lines · Michael Buesch
Quoted 5 lines
Quoted 2 lines

which is why there is ramfs .. :)

In 2.4, too? Can't find it.
What's the CONFIG_* of ramfs?

CONFIG_RAMFS

Ok, that's the thing /dev/ram* is about, isn't it?

nope

Quoted 3 lines

I already have a /dev/ram mounted somewhere, but it's not dynamic in size. What am I missing. I'm kind of confused now. :)

yes you are;

just do
mount -t ramfs none /mnt/point

#8 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoting Arjan van de Ven <[email protected]>:

Quoted 4 lines

yes you are;

just do
mount -t ramfs none /mnt/point

Oho, didn't know that. thanks. 8-}

- --
Regards Michael Buesch [ http://www.tuxsoft.de.vu ]

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFA9VtOFGK1OIvVOP4RAkUVAJ9r+jZNnOrqvgQbUJM0hfPg310aiwCfaayJ E9kxdYqT+06O4Vbn1xF19SA=
=yABs
-----END PGP SIGNATURE-----