[Yaffs] [Yaffs-archive] Re: yaffs taking more space

Charles Manning manningc2@actrix.gen.nz
Mon, 29 Mar 2004 08:08:41 +1200


That seems odd to me too.

It seems that you only have about 35 files on the system. Even with worst 
case overheads I would net expect more than 30kB extra YAFFS "bloat".

Are you sure the the 2.1MB figure tor ext2 is correct?

-- CHarles

On Sunday 28 March 2004 23:25, Skumar wrote:
> Hi,
> i am copying files & the size of files on yaffs on more.
> here r the logs
> i have copied /lib to yaffs
> size of /lib on ext2 is 2.1M but on yaffs it is 4.3M
>
> i am not able to understand what is happening?
>
> Regards
> Sharath
>
>
> Linux login: root
> [root@Linux /root]$df
> Filesystem           1k-blocks      Used Available Use% Mounted on
> /dev/ram0                 7931      5278      2244  70% /
> /dev/mtdblock1           11248        96     11152   1% /mnt/NAND
> [root@Linux /root]$cd /lib
> [root@Linux /lib]$du -h
> 2.1M    .
> [root@Linux /lib]$df -h
> Filesystem                Size      Used Available Use% Mounted on
> /dev/ram0                 7.7M      5.2M      2.2M  70% /
> /dev/mtdblock1           11.0M     96.0k     10.9M   1% /mnt/NAND
> [root@Linux /lib]$cp -R /lib /mnt/NAND/
> [root@Linux /lib]$cd /mnt/NAND/
> [root@Linux NAND]$du -h
> 4.3M    ./lib
> 0       ./lost+found
> 4.3M    .
> [root@Linux NAND]$cd lib
> [root@Linux lib]$du -h
> 4.3M    .
> $df -h
> Filesystem                Size      Used Available Use% Mounted on
> /dev/ram0                 7.7M      5.2M      2.2M  70% /
> /dev/mtdblock1           11.0M      4.4M      6.5M  40% /mnt/NAND
> [root@Linux lib]$cat /proc/yaffs
> YAFFS built:Mar 28 2004 15:29:50
> $Id: yaffs_fs.c,v 1.32 2003/10/29 20:42:34 charles Exp $
> $Id: yaffs_guts.c,v 1.33 2003/11/16 07:40:42 charles Exp $
>
> Device yaffs
> startBlock......... 1
> endBlock........... 703
> chunkGroupBits..... 0
> chunkGroupSize..... 1
> nErasedBlocks...... 423
> nTnodesCreated..... 700
> nFreeTnodes........ 28
> nObjectsCreated.... 100
> nFreeObjects....... 62
> nFreeChunks........ 13597
> nPageWrites........ 0
> nPageReads......... 70
> nBlockErasures..... 0
> nGCCopies.......... 0
> garbageCollections. 0
> passiveGCs......... 0
> nRetriedWrites..... 0
> nRetireBlocks...... 0
> eccFixed........... 0
> eccUnfixed......... 0
> tagsEccFixed....... 0
> tagsEccUnfixed..... 424
> cacheHits.......... 0
> nDeletedFiles...... 0
> nUnlinkedFiles..... 0
> nBackgroudDeletions 0
> useNANDECC......... 0
>

---------------------------------------------------------------------------------------
This mailing list is hosted by Toby Churchill open software (www.toby-churchill.org).
If mailing list membership is no longer wanted you can remove yourself from the list by 
sending an email to yaffs-request@toby-churchill.org with the text "unsubscribe" 
(without the quotes) as the subject.