From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: From: erik quanstrom Date: Mon, 15 Oct 2007 13:58:23 -0400 To: 9fans@cse.psu.edu Subject: Re: [9fans] 9pccpuf freezes (after replica/pull) In-Reply-To: <10b109140710151031y31b23c26va35aeae81c45775a@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: d0ddcbaa-ead2-11e9-9d60-3106f5b1d025 > On 10/15/07, erik quanstrom wrote: > > i wonder if the kernel is too big for the 4MB of temporary page > > table mappings that l.s sets up. the kernel itself decompresses > > to ~3MB and starts at 1MB. there's not much room for the > > kernel pagetable.. > > > > (i had that problem just over the weekend, but with ken's kernel. > > switching to 4MB pages solved the problem.) > > > > How to do it? > I compile my kernels exactly according to > http://cm.bell-labs.com/wiki/plan9/Compiling_kernels > > Antonin you can make it significantly smaller by editing out stuff you're not using. typical targets are unused ethernet, video, disk drivers. if you're not using usb or the bridge device, you can leave 'em out. if you're not using kfs, you can get rid of that. if you're not booting from venti, you can get rid of that. in the ip section you can get rid of gre, rudp and likely ipmux. i've included the kernel conf i was using for testing booting cpuf directly from aoe storage. the kernel was "only" 2053582 bytes. it would be about 1.5MB without the myricom driver. (large firmware.) - erik ---- dev root cons arch pnp pci env pipe proc mnt srv dup rtc ssl tls bridge log sdp thwack unthwack cap kprof fs ether netif cec ip arp chandial ip ipv6 ipaux iproute netlog nullmedium pktmedium ptclbsum386 inferno aoe ip sd uart link realmode acpi ether82563 pci ether82557 pci etherigbe pci ethermii ethersink ethermedium loopbackmedium etherm10g pci misc archmp mp apic uarti8250 uartpci pci uartaxp pci sdaoe sdiahci pci sdscsi sdata pci sdscsi ip il tcp udp ipifc icmp icmp6 gre ipmux esp rudp port int cpuserver = 1; boot cpu local tcp il bootdir bootaoe.out boot /386/bin/fossil/fossil fossil /386/bin/ip/ipconfig ipconfig /386/bin/auth/factotum