LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Tomasz Chmielewski <mangoo@wpkg.org>
To: LKML <linux-kernel@vger.kernel.org>,
Mika Lawando <rzryyvzy@trashmail.net>
Subject: What is the limit size of tmpfs /dev/shm ?
Date: Wed, 06 Feb 2008 15:54:06 +0100 [thread overview]
Message-ID: <47A9CA0E.3030507@wpkg.org> (raw)
> Hello Kernel Users,
>
> is there a size limit for tmpfs for the /dev/shm filesystem?
> Normally its default size is set to 2 GB. Is it possible to create a 2
> TB (Terrabyte) filesystem with tmpfs?
> Or is there a maximum size defined in the linux kernel?
Depends on your arch.
If it's 32 bit, it's limited to 16TB:
# mount -o size=16383G -t tmpfs tmpfs /mnt/2
# df -h
(...)
tmpfs 16T 0 16T 0% /mnt/2
# umount /mnt/2
# mount -o size=16385G -t tmpfs tmpfs /mnt/2
# df -h
(...)
tmpfs 1.0G 0 1.0G 0% /mnt/2
So 16384G would mean the same as 0.
If you're 64 bit, you need to have really loads of storage and/or RAM to
accumulate 16EB:
# mount -t tmpfs -o size=171798691839G tmpfs /mnt/2
# df -h
(...)
tmpfs 16E 0 16E 0% /mnt/2
--
Tomasz Chmielewski
http://lists.wpkg.org
next reply other threads:[~2008-02-06 14:54 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-06 14:54 Tomasz Chmielewski [this message]
2008-02-06 15:06 ` rzryyvzy
2008-02-06 15:29 ` Hugh Dickins
2008-02-06 19:27 ` H. Peter Anvin
2008-02-06 19:48 ` Hugh Dickins
2008-02-06 19:53 ` H. Peter Anvin
2008-02-06 21:58 ` Hugh Dickins
2008-02-06 22:01 ` H. Peter Anvin
2008-02-06 22:40 ` Hugh Dickins
-- strict thread matches above, loose matches on Subject: below --
2008-02-06 13:54 Mika Lawando
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47A9CA0E.3030507@wpkg.org \
--to=mangoo@wpkg.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rzryyvzy@trashmail.net \
--subject='Re: What is the limit size of tmpfs /dev/shm ?' \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).