[PATCH] pci.id performance patch

Artem Kachitchkine Artem.Kachitchkin at Sun.COM
Thu Oct 12 11:05:16 PDT 2006


> We do. Specific projects I personally care about includes OLPC and the
> Nokia 770.

I know, I found it intriguing at the time.

> I also want it to be easy to pick and choose what feature sets you want
> in your build. So, e.g. OLPC wouldn't build with acpi, pmu or apm
> support etc. etc.
> 
> Does that sound good to you? Or did you have other things in minds,
> suggestions very welcome...

That's pretty much what I had in mind, though towards runtime plug-in design 
rather than compile time. Embedded style is often compile time: select the 
modules, build and burn into ROM. I can't see why it can't be both.

> It all adds up really. So, today, we're down to 870kb writable memory on
> Linux (from 2.2MB five days ago.. care to share the writable memory
> usage on Solaris? Just curious..)

See below, heap is ~1.2M. This is on Opteron, without your optimization patches.

-Artem.


-bash-3.00# pmap 100393
100393: /usr/lib/hal/hald --daemon=yes
08041000      28K rw---    [ stack ]
08050000     168K r-x--  /usr/lib/hal/hald
0808A000      28K rw---  /usr/lib/hal/hald
08091000    1256K rw---    [ heap ]
BF7D0000       4K r-x--  /usr/lib/iconv/UTF-8%646.so
BF7E0000       4K rwx--  /usr/lib/iconv/UTF-8%646.so
BF7F0000       4K rwx--    [ anon ]
BF800000       4K r-x--  /usr/lib/iconv/646%UTF-8.so
BF810000       8K rwx--  /usr/lib/iconv/646%UTF-8.so
BF830000       4K rwx--    [ anon ]
BF840000      64K rwx--    [ anon ]
BF959000       4K rw--R    [ stack tid=3 ]
BFA59000       4K rw--R    [ stack tid=2 ]
BFA5C000      64K rw---    [ anon ]
BFA6E000      64K rw---    [ anon ]
BFA80000      48K r-x--  /lib/libsocket.so.1
BFA9C000       4K rw---  /lib/libsocket.so.1
BFAA8000       4K rwxs-    [ anon ]
BFAB0000      24K rwx--    [ anon ]
BFAC0000       4K rwx--    [ anon ]
BFAD0000       4K r-x--  /lib/libavl.so.1
BFAE1000       4K rw---  /lib/libavl.so.1
BFAF0000     560K r-x--  /lib/libnsl.so.1
BFB8C000      20K rw---  /lib/libnsl.so.1
BFB91000      24K rw---  /lib/libnsl.so.1
BFBA0000      24K r-x--  /lib/libgen.so.1
BFBB6000       4K rw---  /lib/libgen.so.1
BFBC0000      56K r-x--  /lib/libsec.so.1
BFBDE000      12K rw---  /lib/libsec.so.1
BFBE1000      12K rw---  /lib/libsec.so.1
BFBF0000       4K rwx--    [ anon ]
BFC00000     208K r-x--  /usr/sfw/lib/libexpat.so.0.5.0
BFC43000       8K rwx--  /usr/sfw/lib/libexpat.so.0.5.0
BFC50000      28K r-x--  /lib/libnvpair.so.1
BFC67000       4K rw---  /lib/libnvpair.so.1
BFC70000      28K r-x--  /lib/libsysevent.so.1
BFC87000       4K rw---  /lib/libsysevent.so.1
BFC90000       4K rwx--    [ anon ]
BFCA0000      92K r-x--  /lib/libdevinfo.so.1
BFCC7000       4K rw---  /lib/libdevinfo.so.1
BFCD0000     204K r-x--  /usr/lib/libgobject-2.0.so.0.1000.2
BFD12000       8K rwx--  /usr/lib/libgobject-2.0.so.0.1000.2
BFD20000     528K r-x--  /usr/lib/libglib-2.0.so.0.1000.2
BFDB3000       8K rwx--  /usr/lib/libglib-2.0.so.0.1000.2
BFDC0000       4K rwx--    [ anon ]
BFDD0000      96K r-x--  /usr/lib/libdbus-glib-1.so.2.0.0
BFDF7000       8K rwx--  /usr/lib/libdbus-glib-1.so.2.0.0
BFE00000     168K r-x--  /usr/lib/libdbus-1.so.2.0.0
BFE39000       4K rwx--  /usr/lib/libdbus-1.so.2.0.0
BFE40000     292K r-x--  /lib/libm.so.2
BFE98000       4K rwx--  /lib/libm.so.2
BFE99000       4K rwx--  /lib/libm.so.2
BFEA0000     916K r-x--  /lib/libc.so.1
BFF95000      28K rw---  /lib/libc.so.1
BFF9C000       8K rw---  /lib/libc.so.1
BFFB0000       4K rwx--    [ anon ]
BFFC2000     164K r-x--  /lib/ld.so.1
BFFFB000       4K rwx--  /lib/ld.so.1
BFFFC000       8K rwx--  /lib/ld.so.1
  total      5356K


More information about the hal mailing list