[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4BC39805.7090807@redhat.com>
Date: Mon, 12 Apr 2010 17:00:37 -0500
From: Eric Sandeen <sandeen@...hat.com>
To: cy6erGn0m <cy6ergn0m@...il.com>
CC: linux-ext4@...r.kernel.org
Subject: Re: No space left on device after many files creation
cy6erGn0m wrote:
> In the past I have done the same test for ext3 and it was created ~10M
> files in one firectory at working filesystem (/home) and it was no
> issues reached.
>
> On ext4 i found inodes max size is limited as you wrote:
> [root@...achine sandbox]# df -i /e4
> Файловая система Инодов Испол Своб Исп % смонтирована на
> (file system/inodes/used/free/used%/mounted on)
> /dev/sda4 1,8M 1,8M 0 100% /e4
> [root@...achine sandbox]#
>
> Why inodes count limit is so small by default? Is it depends on
> partition size?
it does depend on partition size; the inode_ratio = 16384 in mke2fs.conf
says 1 inode per 16k of filesystem space.
the inode size was also increased a couple years ago, and the default
inode count was reduced by half so that the total size remained the same.
-Eric
> Eric Sandeen wrote:
>> cy6erGn0m wrote:
>>
>>> I have found issue with ext4 partition.
>>> I created many many empty files with the following way:
>>> [cy6ergn0m@...achine heap]$ seq 1 10000000 | xargs touch
>>>
>>> But this command crashes asfter a while with a error 'no space left on
>>> device'. At the same time, df -h shows that I have 7Gb free on this file
>>> system. So, I can't create any file in any directory at this filesystem.
>>>
>>> [cy6ergn0m@...achine heap]$ pwd
>>> /e4/sandbox/heap
>>> [cy6ergn0m@...achine heap]$ ls -1 | wc -l
>>> 1261144
>>> [cy6ergn0m@...achine heap]$ df -h /e4
>>> Файловая система Разм Исп Дост Исп% смонтирована на
>>> (filesystem/size/used/available/used%/mounted)
>>> /dev/sda4 28G 7.2G 19G 28% /e4
>>>
>> try df -i
>>
>> There is a limited number of inodes that you can create, as set
>> at mkfs time.
>>
>> -Eric
>>
>>
>>> [cy6ergn0m@...achine heap]$ touch ttt
>>> touch: невозможно выполнить touch для `ttt': На устройстве кончилось место
>>> (touch: failed to execute touch for 'ttt': No space left on device)
>>>
>>>
>>>
>>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists