unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Mohammed Sadiq <sadiq@sadiqpk.org>
To: 28638@debbugs.gnu.org
Subject: [bug#28638] [PATCH] doc: Suggest decreasing bytes per inode.
Date: Fri, 29 Sep 2017 08:59:17 +0530 (IST)	[thread overview]
Message-ID: <2026981815.9444.1506655757552@webmail.mailhostbox.com> (raw)

[-- 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


             reply	other threads:[~2017-09-29  3:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-29  3:29 Mohammed Sadiq [this message]
2017-10-03 13:14 ` [bug#28638] [PATCH] doc: Suggest decreasing bytes per inode Ludovic Courtès
2017-10-03 14:05   ` Mohammed Sadiq
2017-10-03 14:19   ` Leo Famulari

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

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2026981815.9444.1506655757552@webmail.mailhostbox.com \
    --to=sadiq@sadiqpk.org \
    --cc=28638@debbugs.gnu.org \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).