[strongSwan] Strongswan packages selection
Martin Willi
martin at strongswan.org
Mon Sep 2 09:57:29 CEST 2013
Hi,
> I see that the strongwas was taking more memory , i was trying to port this
> on a embedded device for supporting VPN client,
Are you talking about the size of the binaries or about memory usage
during runtime?
> Can i still further reduce the size , because i have very less memory
> footprint about 30MB.
Disabling unneeded plugins is certainly an option. But take care to not
remove any functionality you actually need; try to disable one by one
and check if your scenario still works.
To reduce the binary footprint you can also try to remove debugging
messages for higher levels, i.e. pass -DDEBUG_LEVEL=1 to your CFLAGS. Of
course you should also use -Os and strip your binaries appropriately.
When talking about runtime memory usage, make sure to measure the
correct things. Due to its architecture charon might consume quite some
virtual memory, but usually this is no problem at all. Resident memory
consumption depends on many factors, but reducing it to under 1MB should
be no problem.
Regards
Martin
More information about the Users
mailing list