Ntpd config file support
Cathey, Jim
jcathey at ciena.com
Fri Mar 21 23:10:10 UTC 2014
The only thing BB would need would be to isolate initialization
into separate functions that would be grouped together by the
linker. (And an associated link control file.) The usual demand-paged
kernel will take care of the rest. Page granularity is large enough that,
without grouping like with like, you'd probably end up with other
non-init references mixed within the same page(s), resulting in
more .text pages remaining resident. Whether or not that was
a problem would depend upon your system architecture.
(When using direct-mapped NOR flash, for example, you
wouldn't care even then. With IDE-accessed flash, or rotating
media, or a compressed filesystem, resident text pages would
consume valuable RAM.)
-- Jim
From: busybox-bounces at busybox.net [mailto:busybox-bounces at busybox.net] On Behalf Of Mike Dean
Sent: Friday, March 21, 2014 4:02 PM
To: Laurent Bercot
Cc: busybox
Subject: Re: Ntpd config file support
You should've read the full thread. The suggestion was to use dlopen() to fix busybox keeping init code for *everything* in memory when it's not needed, not just for a parser for an ntpd config file.
Mike Dean
mdean at emacinc.com<mailto:mdean at emacinc.com>
http://www.emacinc.com/
Engineer
EMAC, Inc.
618-529-4525 Ext. 330
618-457-0110 Fax
2390 EMAC Way
Carbondale, Il 62901
On Fri, Mar 21, 2014 at 4:16 PM, Laurent Bercot <ska-dietlibc at skarnet.org<mailto:ska-dietlibc at skarnet.org>> wrote:
Are you seriously suggesting to add dlopen()ed libraries to busybox
to offset the bloat of adding a config file parser to ntpd ?
This is the exact kind of "design" that busybox is fighting.
Please readhttp://busybox.net/FAQ.html#goals<http://busybox.net/FAQ.html#goals> and
http://busybox.net/FAQ.html#tips_memory , as well as
http://en.wikipedia.org/wiki/KISS_principle .
--
Laurent
_______________________________________________
busybox mailing list
busybox at busybox.net<mailto:busybox at busybox.net>
http://lists.busybox.net/mailman/listinfo/busybox
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20140321/5ae5082a/attachment.html>
More information about the busybox
mailing list