* [bug#28638] [PATCH] doc: Suggest decreasing bytes per inode.
@ 2017-09-29 3:29 Mohammed Sadiq
2017-10-03 13:14 ` Ludovic Courtès
0 siblings, 1 reply; 4+ messages in thread
From: Mohammed Sadiq @ 2017-09-29 3:29 UTC (permalink / raw)
To: 28638
[-- Attachment #1: Type: text/plain, Size: 281 bytes --]
This may not be optimal. But I believe this might be good.
On my system (with 21 GiB root partition), I was always getting
"No space left on device" error while `df -h' was reporting 7 GiB
of free space. After further investigation I found that the inode
space was filled (df -i).
[-- Attachment #2: 0001-doc-Suggest-decreasing-bytes-per-inode.patch --]
[-- Type: text/x-patch, Size: 1570 bytes --]
From 9b44896352f63f1417e241a193267a6ffdb72017 Mon Sep 17 00:00:00 2001
From: Mohammed Sadiq <sadiq@sadiqpk.org>
Date: Fri, 29 Sep 2017 08:52:02 +0530
Subject: [PATCH] doc: Suggest decreasing bytes per inode.
By default bytes per inode is 16KiB. As the store files can be really
small the inode space may get filled and errors regarding no empty space
begins to appear.
Reducing the size to 8KiB has an overhead of about 16MiB per GiB
reserved for inode, better than having lots of cannot be used partition
space.
* doc/guix.texi (Disk Partitioning): Suggest to decrease bytes per inode
for small partitions.
---
doc/guix.texi | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/doc/guix.texi b/doc/guix.texi
index 1b329d255..a150fa024 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -7998,6 +7998,17 @@ partition lives at @file{/dev/sda1}, a file system with the label
mkfs.ext4 -L my-root /dev/sda1
@end example
+As the store (@pxref{The Store}) shall be having lots of directories,
+symbolic links, and small files, the inode space may run out before
+the disk space is filled, especially if the partition size is small.
+Decreasing the bytes per inode shall be better to avoid related issues.
+So, with partition @file{/dev/sda1}, and with a label @code{my-root},
+bytes per inode can be set with:
+
+@example
+mkfs.ext4 -L my-root -i 8192 /dev/sda1
+@end example
+
@cindex encrypted disk
If you are instead planning to encrypt the root partition, you can use
the Cryptsetup/LUKS utilities to do that (see @inlinefmtifelse{html,
--
2.14.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [bug#28638] [PATCH] doc: Suggest decreasing bytes per inode.
2017-09-29 3:29 [bug#28638] [PATCH] doc: Suggest decreasing bytes per inode Mohammed Sadiq
@ 2017-10-03 13:14 ` Ludovic Courtès
2017-10-03 14:05 ` Mohammed Sadiq
2017-10-03 14:19 ` Leo Famulari
0 siblings, 2 replies; 4+ messages in thread
From: Ludovic Courtès @ 2017-10-03 13:14 UTC (permalink / raw)
To: Mohammed Sadiq; +Cc: 28638
Hello,
Mohammed Sadiq <sadiq@sadiqpk.org> skribis:
> On my system (with 21 GiB root partition), I was always getting
> "No space left on device" error while `df -h' was reporting 7 GiB
> of free space. After further investigation I found that the inode
> space was filled (df -i).
[...]
> +As the store (@pxref{The Store}) shall be having lots of directories,
> +symbolic links, and small files, the inode space may run out before
> +the disk space is filled, especially if the partition size is small.
> +Decreasing the bytes per inode shall be better to avoid related issues.
> +So, with partition @file{/dev/sda1}, and with a label @code{my-root},
> +bytes per inode can be set with:
> +
> +@example
> +mkfs.ext4 -L my-root -i 8192 /dev/sda1
Are you sure that this suggestion helps fix what you experienced?
I’ve used ext4 partitions much bigger than this but I’ve never needed to
pass “-i 8192” or similar.
Could it be that the ENOSPC you experienced was due to something else,
or on some other partition?
Thanks,
Ludo’.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [bug#28638] [PATCH] doc: Suggest decreasing bytes per inode.
2017-10-03 13:14 ` Ludovic Courtès
@ 2017-10-03 14:05 ` Mohammed Sadiq
2017-10-03 14:19 ` Leo Famulari
1 sibling, 0 replies; 4+ messages in thread
From: Mohammed Sadiq @ 2017-10-03 14:05 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: 28638
> On October 3, 2017 at 6:44 PM Ludovic Courtès <ludo@gnu.org> wrote:
>
>
> Hello,
Hello,
> I’ve used ext4 partitions much bigger than this but I’ve never needed to
> pass “-i 8192” or similar.
>
The issue happens when lots of small files are stored in store.
It may be possible to reproduce this by creating a separate partition
for /gnu/store with size around 5-10 GiB (I haven't tried that way though).
> Could it be that the ENOSPC you experienced was due to something else,
> or on some other partition?
Idk. This same error was shown when downloading a file in icecat or copying
a file in nautilus in home dir.
But of course, this patch can wait, until some others have the same issue.
Anyway, note that if no space error is shown, it can either be disk space
filled (df -h) or inode space filled (df -hi).
Thanks
^ permalink raw reply [flat|nested] 4+ messages in thread
* [bug#28638] [PATCH] doc: Suggest decreasing bytes per inode.
2017-10-03 13:14 ` Ludovic Courtès
2017-10-03 14:05 ` Mohammed Sadiq
@ 2017-10-03 14:19 ` Leo Famulari
1 sibling, 0 replies; 4+ messages in thread
From: Leo Famulari @ 2017-10-03 14:19 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: Mohammed Sadiq, 28638
[-- Attachment #1: Type: text/plain, Size: 1451 bytes --]
On Tue, Oct 03, 2017 at 03:14:35PM +0200, Ludovic Courtès wrote:
> Mohammed Sadiq <sadiq@sadiqpk.org> skribis:
> > +As the store (@pxref{The Store}) shall be having lots of directories,
> > +symbolic links, and small files, the inode space may run out before
> > +the disk space is filled, especially if the partition size is small.
> > +Decreasing the bytes per inode shall be better to avoid related issues.
> > +So, with partition @file{/dev/sda1}, and with a label @code{my-root},
> > +bytes per inode can be set with:
> > +
> > +@example
> > +mkfs.ext4 -L my-root -i 8192 /dev/sda1
>
> Are you sure that this suggestion helps fix what you experienced?
>
> I’ve used ext4 partitions much bigger than this but I’ve never needed to
> pass “-i 8192” or similar.
I've also not run out of inodes on my ext4 system that was set up with
Debian's defaults.
Also, it may be better to recommend creating the filesystem with more
inodes than usual, rather than reducing the size of the inodes. From the
man page mkfs.ext4(8):
-N number-of-inodes
Overrides the default calculation of the number of inodes that
should be reserved for the filesystem (which is based on the
number of blocks and the bytes-per-inode ratio). This allows the
user to specify the number of desired inodes directly.
But then you are really asking for too much expertise when installing
Guix, in my opinion.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-10-03 14:21 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-29 3:29 [bug#28638] [PATCH] doc: Suggest decreasing bytes per inode Mohammed Sadiq
2017-10-03 13:14 ` Ludovic Courtès
2017-10-03 14:05 ` Mohammed Sadiq
2017-10-03 14:19 ` Leo Famulari
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.