- 21. howto preallocate to minimize fragmentation (score: 1)
- Author: Ying-Hung Chen <ying@xxxxxxxxxxxxxx>
- Date: Thu, 22 Sep 2005 19:40:41 +0800
- Hi there, we are storing realtime streaming data (multiple/random writes) in our Linux system with XFS filesystem and suffering from heavy fragementation 2GB files) before using the file system. we a
- /archives/xfs/2005-09/msg00363.html (8,236 bytes)
- 22. Re: howto preallocate to minimize fragmentation (score: 1)
- Author: Eric Sandeen <sandeen@xxxxxxx>
- Date: Thu, 22 Sep 2005 07:23:07 -0500
- 2GB files) before using the file system. we are creating the 'quick' sparse file like the following: (is this cause the problem?) /bin/dd if=/dev/zero of=/mnt/file.ivf bs=1M seek=2000000 count=1 We a
- /archives/xfs/2005-09/msg00368.html (9,517 bytes)
- 23. Re: howto preallocate to minimize fragmentation (score: 1)
- Author: Ying-Hung Chen <ying@xxxxxxxxxxxxxx>
- Date: Thu, 22 Sep 2005 22:29:32 +0800
- Hello again, Thanks for the info, here are more specifics on what we are trying to do: we have 200GB of harddive and would like to create 90-95 of 'video' file, each with 2GBs (data will be writting
- /archives/xfs/2005-09/msg00369.html (9,542 bytes)
- 24. Re: howto preallocate to minimize fragmentation (score: 1)
- Author: Eric Sandeen <sandeen@xxxxxxx>
- Date: Thu, 22 Sep 2005 09:40:08 -0500
- Ying-Hung Chen wrote: See the xfsctl man page from xfsprogs, specifically XFS_IOC_RESVSP creating a sparse file will not help with fragmentation, unfortunately. Hello again, Thanks for the info, here
- /archives/xfs/2005-09/msg00370.html (10,383 bytes)
- 25. Re: howto preallocate to minimize fragmentation (score: 1)
- Author: Ying-Hung Chen <ying@xxxxxxxxxxxxxx>
- Date: Thu, 22 Sep 2005 22:56:54 +0800
- does this mean, if I create a 2GB file via dd (not sparse file), when i 'overwrite' to the same file, it will stay there? (same physical place) I just thought of wild idea... since i am creating 90
- /archives/xfs/2005-09/msg00371.html (9,599 bytes)
- 26. Re: howto preallocate to minimize fragmentation (score: 1)
- Author: Eric Sandeen <sandeen@xxxxxxx>
- Date: Thu, 22 Sep 2005 10:04:51 -0500
- Ying-Hung Chen wrote: pre-allocation before writing would still be your best bet. If you pre-allocate on a fresh fs before writing, you should get very large extents. does this mean, if I create a 2G
- /archives/xfs/2005-09/msg00372.html (10,668 bytes)
- 27. Re: howto preallocate to minimize fragmentation (score: 1)
- Author: Andrew Ho <andrewho@xxxxxxxxxxxxx>
- Date: Thu, 22 Sep 2005 11:31:49 -0400
- Ying-Hung Chen wrote: pre-allocation before writing would still be your best bet. If you pre-allocate on a fresh fs before writing, you should get very large extents. does this mean, if I create a 2G
- /archives/xfs/2005-09/msg00373.html (11,257 bytes)
- 28. Re: howto preallocate to minimize fragmentation (score: 1)
- Author: Ying-Hung Chen <ying@xxxxxxxxxxxxxx>
- Date: Thu, 22 Sep 2005 23:34:28 +0800
- actually, performance is the problem got my attention, and when i run xfs_db and check the fragmentation, its well over 95% on one 200GB partition...... -Ying
- /archives/xfs/2005-09/msg00374.html (9,671 bytes)
- 29. Re: howto preallocate to minimize fragmentation (score: 1)
- Author: Ying-Hung Chen <ying@xxxxxxxxxxxxxx>
- Date: Thu, 22 Sep 2005 23:39:35 +0800
- okay, I'll give it a try tomorrow, just want to make sure, int xfsctl (const char *path, int fd, int cmd, void *ptr); path is actually the filename right? and fd is the FILE* where I open the filena
- /archives/xfs/2005-09/msg00375.html (9,687 bytes)
- 30. Re: howto preallocate to minimize fragmentation (score: 1)
- Author: Eric Sandeen <sandeen@xxxxxxx>
- Date: Thu, 22 Sep 2005 10:45:02 -0500
- Ying-Hung Chen wrote: I guess while you played your video file, which was 2GB. Your video images were not smoothly shown on the player. It gave you an impression that there was a problem on the files
- /archives/xfs/2005-09/msg00376.html (11,355 bytes)
- 31. Re: howto preallocate to minimize fragmentation (score: 1)
- Author: Ying-Hung Chen <ying@xxxxxxxxxxxxxx>
- Date: Fri, 23 Sep 2005 14:31:12 +0800
- when I run the sample code, and created "testfile" [yhchen@fc3 ~]$ ./xfs_fcntl testfile [yhchen@fc3 ~]$ ls -l testfile -rwx-- 1 yhchen yhchen 0 Sep 23 14:17 testfile [yhchen@fc3 ~]$ du testfile 2048
- /archives/xfs/2005-09/msg00380.html (10,371 bytes)
- 32. Re: howto preallocate to minimize fragmentation (score: 1)
- Author: Eric Sandeen <sandeen@xxxxxxx>
- Date: Fri, 23 Sep 2005 07:58:09 -0500
- Ying-Hung Chen wrote: when I run the sample code, and created "testfile" [yhchen@fc3 ~]$ ./xfs_fcntl testfile [yhchen@fc3 ~]$ ls -l testfile -rwx-- 1 yhchen yhchen 0 Sep 23 14:17 testfile [yhchen@fc3
- /archives/xfs/2005-09/msg00383.html (11,006 bytes)
This search system is powered by
Namazu