| To: | "Ralf G. R. Bergs" <rabe@xxxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: Reduce XFS footprint (was Re: TAKE - remove a function xfs added to filemap.c |
| From: | Stephen Lord <lord@xxxxxxx> |
| Date: | Sat, 26 Jan 2002 13:59:15 -0600 |
| Cc: | Linux XFS Mailing List <linux-xfs@xxxxxxxxxxx> |
| References: | <E16UW6R-0007K6-00@ADSL-Bergs.RZ.RWTH-Aachen.DE> |
| Sender: | owner-linux-xfs@xxxxxxxxxxx |
| User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7) Gecko/20011226 |
Ralf G. R. Bergs wrote: then it gets a bit smaller. There are definitely other code paths you cannot get to in there I would say 95% of the code is untouched, except for the endian conversion work which was neccessary for a little endian implementation. The interfaces between the vfs and the filesystem and between the filesystem and the block layer are where all the changes have happened. We did need to do a lot of work for data caching since the Irix model and the linux model were not at all close. The vfs layer has some major differences too. You could try editing xfs_types.h and changing
Max file size 2^40 bytes Max filesystem size is 2 Tbytes I think (not sure without some research). It does compile and run, and you save about 45K in code size by doing it, so not too much. You can also edit xfs_macros.h and define WANT_SPACE_C to 1 (replace the existing definition). This turns a lot of inline macros into function calls - it will be slower, but it is another 10K less code - again, not very much. So and smp build (in 2.5) went from text data bss dec hex filename 520994 4896 2080 527970 80e62 fs/xfs/xfs.o to text data bss dec hex filename 487334 4896 2080 494310 78ae6 fs/xfs/xfs.o with these two build changes. Steve |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: How to create a separate log, Stephen Lord |
|---|---|
| Next by Date: | Problems with yesterday CVS and international characters, Leandro Lucarella |
| Previous by Thread: | Re: Reduce XFS footprint (was Re: TAKE - remove a function xfs added to filemap.c, Ralf G. R. Bergs |
| Next by Thread: | Why porting XFS to Linux means much work (was Re: Reduce XFS footprint (was Re: TAKE - remove a function xfs added to filemap.c, Ralf G. R. Bergs |
| Indexes: | [Date] [Thread] [Top] [All Lists] |