* linker script for non-4k page size
@ 2005-12-11 2:37 Fuxin Zhang
2005-12-11 2:56 ` Fuxin Zhang
0 siblings, 1 reply; 4+ messages in thread
From: Fuxin Zhang @ 2005-12-11 2:37 UTC (permalink / raw)
To: Linux/MIPS Development
hi,
I come across a problem when trying to use 16k page size for 2.6.14
linux/mips kernel: arch/mips/kernel/vmlinux.lds.S align some sections
with hardcoded ". = ALIGN(4096)".
This will lead to problem if non-4k page size is used. For example,
if the .init section is put at a page 4k-aligned but not 16k-aligned,
free_initmem will free more spaces than it should do, and strange
problems will occur.
Should we change to alignment according to CONFIG_PAGE_SIZE_XX? or
just set it to largest possible value(this may cause size increasement?)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: linker script for non-4k page size
2005-12-11 2:37 linker script for non-4k page size Fuxin Zhang
@ 2005-12-11 2:56 ` Fuxin Zhang
2006-02-02 11:05 ` Thiemo Seufer
0 siblings, 1 reply; 4+ messages in thread
From: Fuxin Zhang @ 2005-12-11 2:56 UTC (permalink / raw)
To: Linux/MIPS Development
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=gb18030, Size: 963 bytes --]
BTW: except this problem, 2.6.14 with 16k page size runs well on my
machine. According to our experiences of 2.4 kernels, 16k page size
has a bit benefit over 4k page size(average 6% improvement for spec
cpu2000 int).
But to use 16k kernel, we have to convert binaries of debian/mips:
their sections are often not 16k aligned untill the latest testing branch.
Fuxin Zhang дµÀ:
> hi,
> I come across a problem when trying to use 16k page size for 2.6.14
> linux/mips kernel: arch/mips/kernel/vmlinux.lds.S align some sections
> with hardcoded ". = ALIGN(4096)".
> This will lead to problem if non-4k page size is used. For example,
> if the .init section is put at a page 4k-aligned but not 16k-aligned,
> free_initmem will free more spaces than it should do, and strange
> problems will occur.
> Should we change to alignment according to CONFIG_PAGE_SIZE_XX? or
> just set it to largest possible value(this may cause size increasement?)
>
>
>
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: linker script for non-4k page size
2006-02-02 11:05 ` Thiemo Seufer
@ 2005-12-11 11:46 ` Fuxin Zhang
0 siblings, 0 replies; 4+ messages in thread
From: Fuxin Zhang @ 2005-12-11 11:46 UTC (permalink / raw)
To: Thiemo Seufer; +Cc: Linux/MIPS Development
Thiemo Seufer 写道:
>
> AFAIR a 64k alignment between code and data segments was introduced
> in debian shortly before the sarge release, but no attempt to
> systematically rebuild with that toolchain was made (because debian
> sarge supports only 4k paged kernels). A rebuild of the respective
> sarge packages should be enough to work around the problem.
Rebuild is too much work:), I just wrote some scripts to convert all the
debian packages: extract the files, convert the binaries, and repack.
If anyone is interested, I can provide the scripts(and the resulting
16k-enable sarge mipsel isos), though he has to wait some days before I go
back to lab.
>
>
> Thiemo
>
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: linker script for non-4k page size
2005-12-11 2:56 ` Fuxin Zhang
@ 2006-02-02 11:05 ` Thiemo Seufer
2005-12-11 11:46 ` Fuxin Zhang
0 siblings, 1 reply; 4+ messages in thread
From: Thiemo Seufer @ 2006-02-02 11:05 UTC (permalink / raw)
To: Fuxin Zhang; +Cc: Linux/MIPS Development
On Sun, Dec 11, 2005 at 10:56:38AM +0800, Fuxin Zhang wrote:
> BTW: except this problem, 2.6.14 with 16k page size runs well on my
> machine. According to our experiences of 2.4 kernels, 16k page size
> has a bit benefit over 4k page size(average 6% improvement for spec
> cpu2000 int).
> But to use 16k kernel, we have to convert binaries of debian/mips:
> their sections are often not 16k aligned untill the latest testing branch.
AFAIR a 64k alignment between code and data segments was introduced
in debian shortly before the sarge release, but no attempt to
systematically rebuild with that toolchain was made (because debian
sarge supports only 4k paged kernels). A rebuild of the respective
sarge packages should be enough to work around the problem.
Thiemo
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-02-02 11:41 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-11 2:37 linker script for non-4k page size Fuxin Zhang
2005-12-11 2:56 ` Fuxin Zhang
2006-02-02 11:05 ` Thiemo Seufer
2005-12-11 11:46 ` Fuxin Zhang
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.