[Samba] how to reduce footprint of smbd?

Patrick pf at stollmann.de
Mon Jun 9 11:52:31 GMT 2008


Hello Ryan

> Patrick wrote:
>  
>> Hello
>> This is my first mail for this list, so please be considerately.
>>
>> I'm trying to build a tiny version of samba for an embedded device.
>> currently im using the version 2.2 with a footprint of smbd 2.4M.
>>
>> Thats to much.
>> Is there a way/patch to build smbd without everything beside file 
>> exchage?
>> I don't need printer, swat, ldap,.... support. Just exchange.
>> I have disabled most of the features via .configure but thats not 
>> enough.
>>
>> I found a patch for 2.0 which disable some parts of printing.
>> https://dev.openwrt.org/browser/packages/net/samba/patches/100-samba.patch 
>>
>>
>> Anybody a solution idea?
>>
>> Best regards
>> Patrick Fischer
>>
>> btw.: I know about samba-ng which is a tiny samba
>>     
>
> You mentioned that you know about samba-ng, but you did not mention what
> about it does not work for you... what is the issue?
>
>   

My second try with samba-tng result in a filesize
-rwxr-xr-x 1 pf   pf   931858 2008-06-09 12:14 libmsrpc.so.0
-rwxr-xr-x 1 pf   pf    51897 2008-06-09 12:15 libnmb.so.0
-rwxr-xr-x 1 pf   pf   560915 2008-06-09 12:16 libsamba.so.0
-rwxr-xr-x 1 pf   pf   287629 2008-06-09 12:15 libsmb.so.0
-rwxr-xr-x 1 pf   pf    33342 2008-06-09 12:16 libsurs.so.0
-rwxr-xr-x 1 pf   pf    17948 2008-06-09 12:16 libubiqx.so.0
-rwxr-xr-x 1 pf   pf   618000 2008-06-09 12:10 smbd

total 2501589 (2,5MB)

I'm a littel bit disappointed about the filesize.
I could link the libs static but it will not result in a total filesize 
of <1MB

Best regards
Patrick





More information about the samba mailing list