From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Thu, 02 Feb 2006 02:52:01 +0000 (GMT) Received: from webmail.ict.ac.cn ([159.226.39.7]:21979 "HELO ict.ac.cn") by ftp.linux-mips.org with SMTP id S3465637AbWBBCvo (ORCPT ); Thu, 2 Feb 2006 02:51:44 +0000 Received: (qmail 1103 invoked by uid 507); 2 Feb 2006 02:22:19 -0000 Received: from unknown (HELO ?210.77.15.252?) (fxzhang@210.77.15.72) by ict.ac.cn with SMTP; 2 Feb 2006 02:22:19 -0000 Message-ID: <439B9566.3020607@ict.ac.cn> Date: Sun, 11 Dec 2005 10:56:38 +0800 From: Fuxin Zhang User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: Linux/MIPS Development Subject: Re: linker script for non-4k page size References: <439B9104.6000605@ict.ac.cn> In-Reply-To: <439B9104.6000605@ict.ac.cn> X-Enigmail-Version: 0.93.0.0 Content-Type: text/plain; charset=gb18030 Content-Transfer-Encoding: 8bit Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 10293 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: fxzhang@ict.ac.cn Precedence: bulk X-list: linux-mips 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?) > > > > >