Date: Mon, 13 Apr 1998 14:58:09 +1000 (EST) From: Peter Jeremy <Peter.Jeremy@alcatel.com.au> To: freebsd-hackers@FreeBSD.ORG Subject: Waste space in kernel data structures Message-ID: <199804130458.OAA04968@gsms01.alcatel.com.au>
next in thread | raw e-mail | index | archive | help
I have noticed a couple of cases in the 2.x kernel where data structures (particularly private device driver structures) have been laid out without due consideration for alignment requirements - resulting in assorted padding bytes. In addition, the standard `boolean' type is a char - which is mostly wasted. Has anyone looked at how much kernel memory space is wasted by compiler padding and felt that it would be worthwhile doing a cleanup? Has anyone looked at whether the data space that could be saved by converting boolean flags to a single bit outweighs the speed loss and possible code bloat? Peter -- Peter Jeremy (VK2PJ) peter.jeremy@alcatel.com.au Alcatel Australia Limited 41 Mandible St Phone: +61 2 9690 5019 ALEXANDRIA NSW 2015 Fax: +61 2 9690 5247 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?199804130458.OAA04968>