Date: Fri, 19 Feb 1999 11:27:11 +1100 From: Peter Jeremy <peter.jeremy@auss2.alcatel.com.au> To: hackers@FreeBSD.ORG Subject: Re: vm_page_zero_fill Message-ID: <99Feb19.111641est.40325@border.alcanet.com.au>
next in thread | raw e-mail | index | archive | help
Dag-Erling Smorgrav <des@flood.ping.uio.no> wrote: >If you have a *lot* of global data in your app, you basically have a >choice between a) initializing them in main(), b) spending some CPU >cycles zeroing the BSS at load time, Note that b) _may_ be more efficient that a). The FreeBSD kernel contains several (3 from memory) different bzero algorithms and selects one to suit the CPU (at least in theory). Some processors (eg SuperSPARC) include special bzero instructions which are only available to the kernel. (The downside is that the kernel initialises everything. The programmer may be able to get away with only initialising parts of the BSS). Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?99Feb19.111641est.40325>