[RTEMS Project] #4213: libbsd: Reduce footprint of minimal buildset

RTEMS trac trac at rtems.org
Thu Jan 7 22:39:43 UTC 2021


#4213: libbsd: Reduce footprint of minimal buildset
--------------------------------+---------------------------------
 Reporter:  Christian Mauderer  |       Owner:  Christian Mauderer
     Type:  project             |      Status:  assigned
 Priority:  normal              |   Milestone:  Indefinite
Component:  network/libbsd      |     Version:
 Severity:  normal              |  Resolution:
 Keywords:  SoC libbsd          |  Blocked By:
 Blocking:                      |
--------------------------------+---------------------------------

Comment (by Chris Johns):

 This is a nice idea.

 I would prefer we leave the FreeBSD source as close as possible to the
 upstream sources. I believe this has major benefits over attempts to
 minimize the scope for RTEMS. The reality is `libbsd` will grow in size as
 the FreeBSD file, file descriptor and VFS code is merged into our code
 base. My simplistic view is the linker garbage collection is removing
 unused pieces of that code even if it is being built. Analysis and review
 of what is happening is a great idea but we need to find the balance
 between transparent sources, the size of the built code and the
 functionality being provide.

 I would like to suggesting extending the scope to look at how we use
 `libbsd` and how run-time memory effects performance and usability. We do
 not have a good write up on the effects of different memory sizes provided
 to the networking stack, what `sysctl` variables do to memory usage verses
 performance and how to tune the code for use on RTEMS. There will be a mix
 of use cases, those with small memory and limited performance to those who
 need to run at wire speed. Our users are RTEMS users and helping with the
 complexity of the FreeBSD side of things would be a major help as `libbsd`
 is used more and more.

--
Ticket URL: <http://devel.rtems.org/ticket/4213#comment:1>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list