LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* What is the limit size of tmpfs /dev/shm ? 
@ 2008-02-06 14:54 Tomasz Chmielewski
  2008-02-06 15:06 ` rzryyvzy
  2008-02-06 15:29 ` Hugh Dickins
  0 siblings, 2 replies; 10+ messages in thread
From: Tomasz Chmielewski @ 2008-02-06 14:54 UTC (permalink / raw)
  To: LKML, Mika Lawando

> 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

^ permalink raw reply	[flat|nested] 10+ messages in thread
* What is the limit size of tmpfs /dev/shm ?
@ 2008-02-06 13:54 Mika Lawando
  0 siblings, 0 replies; 10+ messages in thread
From: Mika Lawando @ 2008-02-06 13:54 UTC (permalink / raw)
  To: linux-kernel

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?

-- 
Best regards,
Mika Lawando



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2008-02-06 22:41 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-06 14:54 What is the limit size of tmpfs /dev/shm ? Tomasz Chmielewski
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

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).