* UBIFS space consumption
@ 2013-01-18 16:55 Vikram Narayanan
2013-02-01 17:32 ` Vikram Narayanan
2013-02-04 7:03 ` Artem Bityutskiy
0 siblings, 2 replies; 5+ messages in thread
From: Vikram Narayanan @ 2013-01-18 16:55 UTC (permalink / raw)
To: linux-mtd; +Cc: Artem Bityutskiy
I am using UBIFS with the below partitioning layout.
<6m(bootloader)
512k(environment)
512k(redundant-environment)
5m(kernel),
170m(filesystem),
40m(user_data1),
-(user_data2)>
For the UBI volume 0 which has 170 MiB,
ubinfo reports 164.7 MiB, which is explained by:
(PEB size - LEB size) * (no of PEB's - reserved PEBs)
(256 - 248) * (680 - 6) = 5.392 MiB
Total size = 170 MiB - 5.39 = 164.6 MiB
root@BOX:/# ubinfo /dev/ubi0
ubi0
Volumes count: 1
Logical eraseblock size: 253952 bytes, 248.0 KiB
Total amount of logical eraseblocks: 680 (172687360 bytes, 164.7 MiB)
Amount of available logical eraseblocks: 0 (0 bytes)
Maximum count of volumes 128
Count of bad physical eraseblocks: 0
Count of reserved physical eraseblocks: 6
Current maximum erase counter value: 5
Minimum input/output unit size: 4096 bytes
Character device major/minor: 253:0
Present volumes: 0
But according to "df", UBI volume 0 is sized 148.9 MiB. That's, 15.8
MiB more in terms of consumption.
root@BOX:/# df -h
Filesystem Size Used Available Use% Mounted on
ubi0:rootfs 148.9M 132.8M 16.1M 89% /
root@BOX:/#
Can someone explain where this 15 MiB is getting lost?
Regards,
Vikram
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: UBIFS space consumption
2013-01-18 16:55 UBIFS space consumption Vikram Narayanan
@ 2013-02-01 17:32 ` Vikram Narayanan
2013-02-04 7:03 ` Artem Bityutskiy
1 sibling, 0 replies; 5+ messages in thread
From: Vikram Narayanan @ 2013-02-01 17:32 UTC (permalink / raw)
To: linux-mtd; +Cc: Artem Bityutskiy
On 1/18/2013 10:25 PM, Vikram Narayanan wrote:
> I am using UBIFS with the below partitioning layout.
>
> <6m(bootloader)
> 512k(environment)
> 512k(redundant-environment)
> 5m(kernel),
> 170m(filesystem),
> 40m(user_data1),
> -(user_data2)>
>
> For the UBI volume 0 which has 170 MiB,
> ubinfo reports 164.7 MiB, which is explained by:
>
> (PEB size - LEB size) * (no of PEB's - reserved PEBs)
> (256 - 248) * (680 - 6) = 5.392 MiB
> Total size = 170 MiB - 5.39 = 164.6 MiB
>
>
> root@BOX:/# ubinfo /dev/ubi0
> ubi0
> Volumes count: 1
> Logical eraseblock size: 253952 bytes, 248.0 KiB
> Total amount of logical eraseblocks: 680 (172687360 bytes, 164.7 MiB)
> Amount of available logical eraseblocks: 0 (0 bytes)
> Maximum count of volumes 128
> Count of bad physical eraseblocks: 0
> Count of reserved physical eraseblocks: 6
> Current maximum erase counter value: 5
> Minimum input/output unit size: 4096 bytes
> Character device major/minor: 253:0
> Present volumes: 0
>
> But according to "df", UBI volume 0 is sized 148.9 MiB. That's, 15.8
> MiB more in terms of consumption.
>
> root@BOX:/# df -h
> Filesystem Size Used Available Use% Mounted on
> ubi0:rootfs 148.9M 132.8M 16.1M 89% /
> root@BOX:/#
>
> Can someone explain where this 15 MiB is getting lost?
Artem, Any ideas on this?
Thanks,
Vikram
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: UBIFS space consumption
2013-01-18 16:55 UBIFS space consumption Vikram Narayanan
2013-02-01 17:32 ` Vikram Narayanan
@ 2013-02-04 7:03 ` Artem Bityutskiy
2013-02-04 17:29 ` Vikram Narayanan
1 sibling, 1 reply; 5+ messages in thread
From: Artem Bityutskiy @ 2013-02-04 7:03 UTC (permalink / raw)
To: Vikram Narayanan; +Cc: linux-mtd
[-- Attachment #1: Type: text/plain, Size: 356 bytes --]
On Fri, 2013-01-18 at 22:25 +0530, Vikram Narayanan wrote:
> But according to "df", UBI volume 0 is sized 148.9 MiB. That's, 15.8
> MiB more in terms of consumption.
Df is not accurate with UBIFS by design, this is covered by this FAQ
entry:
http://www.linux-mtd.infradead.org/faq/ubifs.html#L_df_report
--
Best Regards,
Artem Bityutskiy
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: UBIFS space consumption
2013-02-04 7:03 ` Artem Bityutskiy
@ 2013-02-04 17:29 ` Vikram Narayanan
2013-02-13 10:26 ` Artem Bityutskiy
0 siblings, 1 reply; 5+ messages in thread
From: Vikram Narayanan @ 2013-02-04 17:29 UTC (permalink / raw)
To: dedekind1; +Cc: linux-mtd
On 2/4/2013 12:33 PM, Artem Bityutskiy wrote:
> On Fri, 2013-01-18 at 22:25 +0530, Vikram Narayanan wrote:
>> But according to "df", UBI volume 0 is sized 148.9 MiB. That's, 15.8
>> MiB more in terms of consumption.
>
> Df is not accurate with UBIFS by design, this is covered by this FAQ
> entry:
>
> http://www.linux-mtd.infradead.org/faq/ubifs.html#L_df_report
>
Sorry, I think you've mistaken my question. I've referred the above FAQ
before framing this mail.
The above FAQ explains why the _free_ space shown by 'df' isn't
accurate. I'm concerned here about the _total_ size shown to me by df,
which is less than what is reported by ubinfo.
Thanks,
Vikram
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: UBIFS space consumption
2013-02-04 17:29 ` Vikram Narayanan
@ 2013-02-13 10:26 ` Artem Bityutskiy
0 siblings, 0 replies; 5+ messages in thread
From: Artem Bityutskiy @ 2013-02-13 10:26 UTC (permalink / raw)
To: Vikram Narayanan; +Cc: linux-mtd
On Mon, 2013-02-04 at 22:59 +0530, Vikram Narayanan wrote:
> On 2/4/2013 12:33 PM, Artem Bityutskiy wrote:
> > On Fri, 2013-01-18 at 22:25 +0530, Vikram Narayanan wrote:
> >> But according to "df", UBI volume 0 is sized 148.9 MiB. That's, 15.8
> >> MiB more in terms of consumption.
> >
> > Df is not accurate with UBIFS by design, this is covered by this FAQ
> > entry:
> >
> > http://www.linux-mtd.infradead.org/faq/ubifs.html#L_df_report
> >
>
> Sorry, I think you've mistaken my question. I've referred the above FAQ
> before framing this mail.
>
> The above FAQ explains why the _free_ space shown by 'df' isn't
> accurate. I'm concerned here about the _total_ size shown to me by df,
> which is less than what is reported by ubinfo.
I guess dmesg output may give some clue - probably that space is spent
for the journal, orphans area, and indexing area.
--
Best Regards,
Artem Bityutskiy
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-02-13 10:25 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-18 16:55 UBIFS space consumption Vikram Narayanan
2013-02-01 17:32 ` Vikram Narayanan
2013-02-04 7:03 ` Artem Bityutskiy
2013-02-04 17:29 ` Vikram Narayanan
2013-02-13 10:26 ` Artem Bityutskiy
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.