Re: [PATCH] rootfs (part 1)

From: Linus Torvalds (torvalds@transmeta.com)
Date: Wed May 16 2001 - 13:00:02 EST


On 16 May 2001, Christoph Rohland wrote:
>
> cr:/speicher/src/u4ac9 $ ls -l mm/shmem.o*
> -rw-r--r-- 1 cr users 154652 Mai 16 19:27 mm/shmem.o-tmpfs
> -rw-r--r-- 1 cr users 180764 Mai 16 19:24 mm/shmem.o+tmpfs
> cr:/speicher/src/u4ac9 $ ls -l fs/ramfs/ramfs.o
> -rw-r--r-- 1 cr users 141452 Mai 16 19:27 fs/ramfs/ramfs.o
>
> So CONFIG_TMPFS adds 26k and ramfs 140k.

What the hell are you doing? Compiling with debugging or something?

The ramfs inode.o file (the only file that ramfs contains) has 376 bytes
of data and 1612 bytes of code. BYTES. The whole final object file with
all the relocation information is

        -rw-r--r-- 1 torvalds eng 5734 May 16 10:58 ramfs.o

but out of that 5.5kB, only 2kB are actually linked into the kernel and
are used to _run_.

How do you get it to 140kB? You're doing something _seriously_
wrong. You're off by a factor of 70.

                Linus

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed May 23 2001 - 21:00:18 EST