FreeSWITCH on Raspberry Pi - OpenVPN gateway, B2BUA
For those who might be interested: During the last days we built a B2BUA based on Freeswitch and Raspberry PI Ver B which connects to a central server via OpenVPN in order to encrypt voice traffic and circumvent NAT issues. We plan to use it during travelling and to have VPN access in the home office. The costs for this are relatively low (~75$). We installed * Raspbian * Freeswitch compiled native from GIT (this really takes a while) * OpenVPN * Dnsmasq for eth1 side * isc-dhcp-server for eth1 side * tftpd-hpa for eth1 side * a second LAN interface eth1 was done by a Delock USB 2.0 to LAN interface (about 20$), works out of the box * iptables firewall for NAT traversal This worked pretty well. We were not sure beforehand, whether the USB to LAN interface would work nicely, but in fact it did. CPU usage during a single call is top - 10:47:34 up 39 min, 1 user, load average: 0,64, 0,40, 0,24 Tasks: 70 total, 1 running, 69 sleeping, 0 stopped, 0 zombie %Cpu(s): 6,5 us, 12,1 sy, 0,0 ni, 64,9 id, 0,0 wa, 0,0 hi, 16,5 si, 0,0 st KiB Mem: 448776 total, 94656 used, 354120 free, 13096 buffers KiB Swap: 102396 total, 0 used, 102396 free, 42464 cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 2785 root -2 -10 28328 14m 4844 S 5,3 3,2 0:30.45 freeswitch 2651 root 20 0 5800 3052 1848 S 3,0 0,7 0:07.73 openvpn 3051 pi 20 0 5096 1256 968 R 0,7 0,3 0:01.97 top 4 GB CF card was about 75%. Codec was G711. The load was mainly generated by the USB-to-LAN adapter. Maybe someone has a better solution for this? At the end we were impressed, how easy this was to set up. So now we have an easy VPN-Router/B2BA which allows us to * connect a PC somewhere and tunnel all traffic via VPN * connect a SIP phone somewhere and tunnel all VoIP traffic via VPN We did this with an OpenWRT Box before, but this is much more easy to handle. Best regards Peter
This is an interesting project. Could you document this, and post the relevant configs into a github repo? William King Senior Engineer Quentus Technologies, INC 1037 NE 65th St Suite 273 Seattle, WA 98115 Main: (877) 211-9337 Office: (206) 388-4772 Cell: (253) 686-5518 william.king@quentustech.com On 03/26/2013 02:52 AM, Peter P GMX wrote:
For those who might be interested:
During the last days we built a B2BUA based on Freeswitch and Raspberry PI Ver B which connects to a central server via OpenVPN in order to encrypt voice traffic and circumvent NAT issues. We plan to use it during travelling and to have VPN access in the home office. The costs for this are relatively low (~75$).
We installed
* Raspbian * Freeswitch compiled native from GIT (this really takes a while) * OpenVPN * Dnsmasq for eth1 side * isc-dhcp-server for eth1 side * tftpd-hpa for eth1 side * a second LAN interface eth1 was done by a Delock USB 2.0 to LAN interface (about 20$), works out of the box * iptables firewall for NAT traversal
This worked pretty well. We were not sure beforehand, whether the USB to LAN interface would work nicely, but in fact it did.
CPU usage during a single call is top - 10:47:34 up 39 min, 1 user, load average: 0,64, 0,40, 0,24 Tasks: 70 total, 1 running, 69 sleeping, 0 stopped, 0 zombie %Cpu(s): 6,5 us, 12,1 sy, 0,0 ni, 64,9 id, 0,0 wa, 0,0 hi, 16,5 si, 0,0 st KiB Mem: 448776 total, 94656 used, 354120 free, 13096 buffers KiB Swap: 102396 total, 0 used, 102396 free, 42464 cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 2785 root -2 -10 28328 14m 4844 S 5,3 3,2 0:30.45 freeswitch 2651 root 20 0 5800 3052 1848 S 3,0 0,7 0:07.73 openvpn 3051 pi 20 0 5096 1256 968 R 0,7 0,3 0:01.97 top
4 GB CF card was about 75%. Codec was G711. The load was mainly generated by the USB-to-LAN adapter. Maybe someone has a better solution for this?
At the end we were impressed, how easy this was to set up. So now we have an easy VPN-Router/B2BA which allows us to
* connect a PC somewhere and tunnel all traffic via VPN * connect a SIP phone somewhere and tunnel all VoIP traffic via VPN
We did this with an OpenWRT Box before, but this is much more easy to handle.
Best regards Peter
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Hello William, I will try to, if I'll find the time. Currently the Raspberry went to a home office of a colleague, so I will have to set up a new one. It's ordered already. Best regards Peter On 03/26/13 15:53, William King wrote:
This is an interesting project. Could you document this, and post the relevant configs into a github repo?
William King Senior Engineer Quentus Technologies, INC 1037 NE 65th St Suite 273 Seattle, WA 98115 Main: (877) 211-9337 Office: (206) 388-4772 Cell: (253) 686-5518 william.king@quentustech.com
On 03/26/2013 02:52 AM, Peter P GMX wrote:
For those who might be interested:
During the last days we built a B2BUA based on Freeswitch and Raspberry PI Ver B which connects to a central server via OpenVPN in order to encrypt voice traffic and circumvent NAT issues. We plan to use it during travelling and to have VPN access in the home office. The costs for this are relatively low (~75$).
We installed
* Raspbian * Freeswitch compiled native from GIT (this really takes a while) * OpenVPN * Dnsmasq for eth1 side * isc-dhcp-server for eth1 side * tftpd-hpa for eth1 side * a second LAN interface eth1 was done by a Delock USB 2.0 to LAN interface (about 20$), works out of the box * iptables firewall for NAT traversal
This worked pretty well. We were not sure beforehand, whether the USB to LAN interface would work nicely, but in fact it did.
CPU usage during a single call is top - 10:47:34 up 39 min, 1 user, load average: 0,64, 0,40, 0,24 Tasks: 70 total, 1 running, 69 sleeping, 0 stopped, 0 zombie %Cpu(s): 6,5 us, 12,1 sy, 0,0 ni, 64,9 id, 0,0 wa, 0,0 hi, 16,5 si, 0,0 st KiB Mem: 448776 total, 94656 used, 354120 free, 13096 buffers KiB Swap: 102396 total, 0 used, 102396 free, 42464 cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 2785 root -2 -10 28328 14m 4844 S 5,3 3,2 0:30.45 freeswitch 2651 root 20 0 5800 3052 1848 S 3,0 0,7 0:07.73 openvpn 3051 pi 20 0 5096 1256 968 R 0,7 0,3 0:01.97 top
4 GB CF card was about 75%. Codec was G711. The load was mainly generated by the USB-to-LAN adapter. Maybe someone has a better solution for this?
At the end we were impressed, how easy this was to set up. So now we have an easy VPN-Router/B2BA which allows us to
* connect a PC somewhere and tunnel all traffic via VPN * connect a SIP phone somewhere and tunnel all VoIP traffic via VPN
We did this with an OpenWRT Box before, but this is much more easy to handle.
Best regards Peter
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- With kind regards Peter Steinbach Telefaks Services GmbH mailto:lists (att) telefaks.de Internet: www.telefaks.de
Just in case anyone is intersted I also have it running on a PCDuino (http://www.pcduino.com), which has a little bit more balls then a Pi. --Dave _____ From: Peter Steinbach [mailto:lists@telefaks.de] To: FreeSWITCH Users Help [mailto:freeswitch-users@lists.freeswitch.org] Sent: Tue, 26 Mar 2013 14:01:31 -0700 Subject: Re: [Freeswitch-users] FreeSWITCH on Raspberry Pi - OpenVPN gateway, B2BUA Hello William, I will try to, if I'll find the time. Currently the Raspberry went to a home office of a colleague, so I will have to set up a new one. It's ordered already. Best regards Peter On 03/26/13 15:53, William King wrote:
This is an interesting project. Could you document this, and post the relevant configs into a github repo?
William King Senior Engineer Quentus Technologies, INC 1037 NE 65th St Suite 273 Seattle, WA 98115 Main: (877) 211-9337 Office: (206) 388-4772 Cell: (253) 686-5518 william.king@quentustech.com
On 03/26/2013 02:52 AM, Peter P GMX wrote:
For those who might be interested:
During the last days we built a B2BUA based on Freeswitch and Raspberry PI Ver B which connects to a central server via OpenVPN in order to encrypt voice traffic and circumvent NAT issues. We plan to use it during travelling and to have VPN access in the home office. The costs for this are relatively low (~75$).
We installed
* Raspbian * Freeswitch compiled native from GIT (this really takes a while) * OpenVPN * Dnsmasq for eth1 side * isc-dhcp-server for eth1 side * tftpd-hpa for eth1 side * a second LAN interface eth1 was done by a Delock USB 2.0 to LAN interface (about 20$), works out of the box * iptables firewall for NAT traversal
This worked pretty well. We were not sure beforehand, whether the USB to LAN interface would work nicely, but in fact it did.
CPU usage during a single call is top - 10:47:34 up 39 min, 1 user, load average: 0,64, 0,40, 0,24 Tasks: 70 total, 1 running, 69 sleeping, 0 stopped, 0 zombie %Cpu(s): 6,5 us, 12,1 sy, 0,0 ni, 64,9 id, 0,0 wa, 0,0 hi, 16,5 si, 0,0 st KiB Mem: 448776 total, 94656 used, 354120 free, 13096 buffers KiB Swap: 102396 total, 0 used, 102396 free, 42464 cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 2785 root -2 -10 28328 14m 4844 S 5,3 3,2 0:30.45 freeswitch 2651 root 20 0 5800 3052 1848 S 3,0 0,7 0:07.73 openvpn 3051 pi 20 0 5096 1256 968 R 0,7 0,3 0:01.97 top
4 GB CF card was about 75%. Codec was G711. The load was mainly generated by the USB-to-LAN adapter. Maybe someone has a better solution for this?
At the end we were impressed, how easy this was to set up. So now we have an easy VPN-Router/B2BA which allows us to
* connect a PC somewhere and tunnel all traffic via VPN * connect a SIP phone somewhere and tunnel all VoIP traffic via VPN
We did this with an OpenWRT Box before, but this is much more easy to handle.
Best regards Peter
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- With kind regards Peter Steinbach Telefaks Services GmbH mailto:lists (att) telefaks.de Internet: www.telefaks.de _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Hey Peter have you seen SwitchPI.org? On 3/26/13 3:52 AM, "Peter P GMX" <Prometheus001@gmx.net> wrote:
For those who might be interested:
During the last days we built a B2BUA based on Freeswitch and Raspberry PI Ver B which connects to a central server via OpenVPN in order to encrypt voice traffic and circumvent NAT issues. We plan to use it during travelling and to have VPN access in the home office. The costs for this are relatively low (~75$).
We installed
* Raspbian * Freeswitch compiled native from GIT (this really takes a while) * OpenVPN * Dnsmasq for eth1 side * isc-dhcp-server for eth1 side * tftpd-hpa for eth1 side * a second LAN interface eth1 was done by a Delock USB 2.0 to LAN interface (about 20$), works out of the box * * iptables firewall for NAT traversal *
This worked pretty well. We were not sure beforehand, whether the USB to LAN interface would work nicely, but in fact it did.
CPU usage during a single call is top - 10:47:34 up 39 min, 1 user, load average: 0,64, 0,40, 0,24 Tasks: 70 total, 1 running, 69 sleeping, 0 stopped, 0 zombie %Cpu(s): 6,5 us, 12,1 sy, 0,0 ni, 64,9 id, 0,0 wa, 0,0 hi, 16,5 si, 0,0 st KiB Mem: 448776 total, 94656 used, 354120 free, 13096 buffers KiB Swap: 102396 total, 0 used, 102396 free, 42464 cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 2785 root -2 -10 28328 14m 4844 S 5,3 3,2 0:30.45 freeswitch 2651 root 20 0 5800 3052 1848 S 3,0 0,7 0:07.73 openvpn 3051 pi 20 0 5096 1256 968 R 0,7 0,3 0:01.97 top
4 GB CF card was about 75%. Codec was G711. The load was mainly generated by the USB-to-LAN adapter. Maybe someone has a better solution for this?
At the end we were impressed, how easy this was to set up. So now we have an easy VPN-Router/B2BA which allows us to
* connect a PC somewhere and tunnel all traffic via VPN * connect a SIP phone somewhere and tunnel all VoIP traffic via VPN
We did this with an OpenWRT Box before, but this is much more easy to handle.
Best regards Peter
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Ken http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org irc.freenode.net #freeswitch
Hello Ken, yes I have seen it. Interesting project. Expecially the LCD part. Best regards Peter On 03/26/13 17:19, Ken Rice wrote:
Hey Peter have you seen SwitchPI.org?
On 3/26/13 3:52 AM, "Peter P GMX" <Prometheus001@gmx.net> wrote:
For those who might be interested:
During the last days we built a B2BUA based on Freeswitch and Raspberry PI Ver B which connects to a central server via OpenVPN in order to encrypt voice traffic and circumvent NAT issues. We plan to use it during travelling and to have VPN access in the home office. The costs for this are relatively low (~75$).
We installed
* Raspbian * Freeswitch compiled native from GIT (this really takes a while) * OpenVPN * Dnsmasq for eth1 side * isc-dhcp-server for eth1 side * tftpd-hpa for eth1 side * a second LAN interface eth1 was done by a Delock USB 2.0 to LAN interface (about 20$), works out of the box *
* iptables firewall for NAT traversal *
This worked pretty well. We were not sure beforehand, whether the USB to LAN interface would work nicely, but in fact it did.
CPU usage during a single call is top - 10:47:34 up 39 min, 1 user, load average: 0,64, 0,40, 0,24 Tasks: 70 total, 1 running, 69 sleeping, 0 stopped, 0 zombie %Cpu(s): 6,5 us, 12,1 sy, 0,0 ni, 64,9 id, 0,0 wa, 0,0 hi, 16,5 si, 0,0 st KiB Mem: 448776 total, 94656 used, 354120 free, 13096 buffers KiB Swap: 102396 total, 0 used, 102396 free, 42464 cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 2785 root -2 -10 28328 14m 4844 S 5,3 3,2 0:30.45 freeswitch 2651 root 20 0 5800 3052 1848 S 3,0 0,7 0:07.73 openvpn 3051 pi 20 0 5096 1256 968 R 0,7 0,3 0:01.97 top
4 GB CF card was about 75%. Codec was G711. The load was mainly generated by the USB-to-LAN adapter. Maybe someone has a better solution for this?
At the end we were impressed, how easy this was to set up. So now we have an easy VPN-Router/B2BA which allows us to
* connect a PC somewhere and tunnel all traffic via VPN * connect a SIP phone somewhere and tunnel all VoIP traffic via VPN
We did this with an OpenWRT Box before, but this is much more easy to handle.
Best regards Peter
------------------------------------------------------------------------ _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Ken _http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.orgFreeswitch wählen "$" <http://www.OSTAG.org> _irc.freenode.net #freeswitch
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- With kind regards Peter Steinbach Telefaks Services GmbH mailto:lists (att) telefaks.de Internet: www.telefaks.de
On 13-03-26 05:52 AM, Peter P GMX wrote:
Freeswitch compiled native from GIT (this really takes a while)
For what it's worth, I've been playing with using ccache and distcc on a beefier box to cross-compile freeswitch from my raspi. I haven't done verifiable benchmarks, but it does seem to cut the compile time down considerably when you offload the compiling. Raspi seems to be gaining enough traction that it might be worthwhile to add a wiki page or two devoted to them with little tips and tricks to make life easier. -Ray
On Tue, Mar 26, 2013 at 5:22 PM, Raymond Chandler < intralanman@freeswitch.org> wrote:
On 13-03-26 05:52 AM, Peter P GMX wrote:
Freeswitch compiled native from GIT (this really takes a while)
For what it's worth, I've been playing with using ccache and distcc on a beefier box to cross-compile freeswitch from my raspi. I haven't done verifiable benchmarks, but it does seem to cut the compile time down considerably when you offload the compiling. Raspi seems to be gaining enough traction that it might be worthwhile to add a wiki page or two devoted to them with little tips and tricks to make life easier.
+1 Here's a start. Those of you who've done raspi stuff w/ FreeSWITCH please add your knowledge here: http://wiki.freeswitch.org/wiki/Raspi Thanks, MC
-Ray
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
While not necessarily being much faster for compiling, I found you can build raspbian packages using the debian package stuff by using qemu on another computer. If you want to build raspbian packages I found that on my raspberrypi (a model B with 512MB of RAM) that it ran out of memory (I believe it happened in the earlier stages where it was getting the various source and either extracting or packing it into a source archive) and to use swap files is very slow and probably not good for the SD card anyway, qemu does overcome these limits. I know that cross compiling might be faster but I never found enough information out there to help me get such a system up and running and I was unsure whether this would lead to a system where I could compile a raspbian package using the debian stuff of freeswitch. Qemu was relatively simple to set up (I think I mainly used a wiki page from the raspberrypi section of elinux.org). Michael Whapples On 27/03/2013 00:22, Raymond Chandler wrote:
On 13-03-26 05:52 AM, Peter P GMX wrote:
Freeswitch compiled native from GIT (this really takes a while)
For what it's worth, I've been playing with using ccache and distcc on a beefier box to cross-compile freeswitch from my raspi. I haven't done verifiable benchmarks, but it does seem to cut the compile time down considerably when you offload the compiling. Raspi seems to be gaining enough traction that it might be worthwhile to add a wiki page or two devoted to them with little tips and tricks to make life easier.
-Ray
Hi! I builded freeswitch from sources on Seagate Goflex Home (1200Mhz ARMv5TE, * 128Mb*, Debian Wheezy) many, many times. Never experiences 'out of memory'. Has HDD connected and swap enabled, but vm.swapiness set to 0, so swap do not even used. I checked this. Swap used in 'top' is always 0. But I never used debian package build system for freeswitch. Best Regards, Dmitry. 2013/3/27 Michael Whapples <mwhapples@aim.com>
While not necessarily being much faster for compiling, I found you can build raspbian packages using the debian package stuff by using qemu on another computer. If you want to build raspbian packages I found that on my raspberrypi (a model B with 512MB of RAM) that it ran out of memory (I believe it happened in the earlier stages where it was getting the various source and either extracting or packing it into a source archive) and to use swap files is very slow and probably not good for the SD card anyway, qemu does overcome these limits.
I know that cross compiling might be faster but I never found enough information out there to help me get such a system up and running and I was unsure whether this would lead to a system where I could compile a raspbian package using the debian stuff of freeswitch. Qemu was relatively simple to set up (I think I mainly used a wiki page from the raspberrypi section of elinux.org).
Michael Whapples
On 27/03/2013 00:22, Raymond Chandler wrote:
On 13-03-26 05:52 AM, Peter P GMX wrote:
Freeswitch compiled native from GIT (this really takes a while)
For what it's worth, I've been playing with using ccache and distcc on a beefier box to cross-compile freeswitch from my raspi. I haven't done verifiable benchmarks, but it does seem to cut the compile time down considerably when you offload the compiling. Raspi seems to be gaining enough traction that it might be worthwhile to add a wiki page or two devoted to them with little tips and tricks to make life easier.
-Ray
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Yes that is right, you will not hit out of memory issues if just doing a compile, but if using the debian packaging stuff you will. I think it is within the part where it gets the various sources and then produces the debian source tarball, so is not actually the compile stage. Michael Whapples On 27/03/2013 16:47, Dmitry Lysenko wrote:
Hi! I builded freeswitch from sources on Seagate Goflex Home (1200Mhz ARMv5TE, *_128Mb_*, Debian Wheezy) many, many times. Never experiences 'out of memory'. Has HDD connected and swap enabled, but vm.swapiness set to 0, so swap do not even used. I checked this. Swap used in 'top' is always 0. But I never used debian package build system for freeswitch. Best Regards, Dmitry.
2013/3/27 Michael Whapples <mwhapples@aim.com <mailto:mwhapples@aim.com>>
While not necessarily being much faster for compiling, I found you can build raspbian packages using the debian package stuff by using qemu on another computer. If you want to build raspbian packages I found that on my raspberrypi (a model B with 512MB of RAM) that it ran out of memory (I believe it happened in the earlier stages where it was getting the various source and either extracting or packing it into a source archive) and to use swap files is very slow and probably not good for the SD card anyway, qemu does overcome these limits.
I know that cross compiling might be faster but I never found enough information out there to help me get such a system up and running and I was unsure whether this would lead to a system where I could compile a raspbian package using the debian stuff of freeswitch. Qemu was relatively simple to set up (I think I mainly used a wiki page from the raspberrypi section of elinux.org <http://elinux.org>).
Michael Whapples
On 27/03/2013 00:22, Raymond Chandler wrote:
On 13-03-26 05:52 AM, Peter P GMX wrote:
Freeswitch compiled native from GIT (this really takes a while)
For what it's worth, I've been playing with using ccache and distcc on a beefier box to cross-compile freeswitch from my raspi. I haven't done verifiable benchmarks, but it does seem to cut the compile time down considerably when you offload the compiling. Raspi seems to be gaining enough traction that it might be worthwhile to add a wiki page or two devoted to them with little tips and tricks to make life easier.
-Ray
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
This is strange. I build vanilla kernels using debians make-kpkg without any problem. Swap does not used. Maybe freeswitch .deb build script writes intermediate sources to tmpfs (in RAM)? 2013/3/27 Michael Whapples <mwhapples@aim.com>
Yes that is right, you will not hit out of memory issues if just doing a compile, but if using the debian packaging stuff you will. I think it is within the part where it gets the various sources and then produces the debian source tarball, so is not actually the compile stage.
Michael Whapples
On 27/03/2013 16:47, Dmitry Lysenko wrote:
Hi! I builded freeswitch from sources on Seagate Goflex Home (1200Mhz ARMv5TE, *128Mb*, Debian Wheezy) many, many times. Never experiences 'out of memory'. Has HDD connected and swap enabled, but vm.swapiness set to 0, so swap do not even used. I checked this. Swap used in 'top' is always 0. But I never used debian package build system for freeswitch. Best Regards, Dmitry.
2013/3/27 Michael Whapples <mwhapples@aim.com>
While not necessarily being much faster for compiling, I found you can build raspbian packages using the debian package stuff by using qemu on another computer. If you want to build raspbian packages I found that on my raspberrypi (a model B with 512MB of RAM) that it ran out of memory (I believe it happened in the earlier stages where it was getting the various source and either extracting or packing it into a source archive) and to use swap files is very slow and probably not good for the SD card anyway, qemu does overcome these limits.
I know that cross compiling might be faster but I never found enough information out there to help me get such a system up and running and I was unsure whether this would lead to a system where I could compile a raspbian package using the debian stuff of freeswitch. Qemu was relatively simple to set up (I think I mainly used a wiki page from the raspberrypi section of elinux.org).
Michael Whapples
On 27/03/2013 00:22, Raymond Chandler wrote:
On 13-03-26 05:52 AM, Peter P GMX wrote:
Freeswitch compiled native from GIT (this really takes a while)
For what it's worth, I've been playing with using ccache and distcc on a beefier box to cross-compile freeswitch from my raspi. I haven't done verifiable benchmarks, but it does seem to cut the compile time down considerably when you offload the compiling. Raspi seems to be gaining enough traction that it might be worthwhile to add a wiki page or two devoted to them with little tips and tricks to make life easier.
-Ray
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
People that put /tmp in tmpfs should be shot! On 3/27/13 4:15 PM, "Dmitry Lysenko" <dvl36.ripe.nick@gmail.com> wrote:
This is strange. I build vanilla kernels using debians make-kpkg without any problem. Swap does not used. Maybe freeswitch .deb build script writes intermediate sources to tmpfs (in RAM)?
2013/3/27 Michael Whapples <mwhapples@aim.com>
Yes that is right, you will not hit out of memory issues if just doing a compile, but if using the debian packaging stuff you will. I think it is within the part where it gets the various sources and then produces the debian source tarball, so is not actually the compile stage.
Michael Whapples
On 27/03/2013 16:47, Dmitry Lysenko wrote:
Hi!
I builded freeswitch from sources on Seagate Goflex Home (1200Mhz ARMv5TE, 128Mb, Debian Wheezy) many, many times. Never experiences 'out of memory'. Has HDD connected and swap enabled, but vm.swapiness set to 0, so swap do not even used. I checked this. Swap used in 'top' is always 0.
But I never used debian package build system for freeswitch.
Best Regards,
Dmitry.
2013/3/27 Michael Whapples <mwhapples@aim.com>
While not necessarily being much faster for compiling, I found you can build raspbian packages using the debian package stuff by using qemu on another computer. If you want to build raspbian packages I found that on my raspberrypi (a model B with 512MB of RAM) that it ran out of memory (I believe it happened in the earlier stages where it was getting the various source and either extracting or packing it into a source archive) and to use swap files is very slow and probably not good for the SD card anyway, qemu does overcome these limits.
I know that cross compiling might be faster but I never found enough information out there to help me get such a system up and running and I was unsure whether this would lead to a system where I could compile a raspbian package using the debian stuff of freeswitch. Qemu was relatively simple to set up (I think I mainly used a wiki page from the raspberrypi section of elinux.org <http://elinux.org> ).
Michael Whapples
On 27/03/2013 00:22, Raymond Chandler wrote:
On 13-03-26 05:52 AM, Peter P GMX wrote:
Freeswitch compiled native from GIT (this really takes a while)
For what it's worth, I've been playing with using ccache and distcc on a beefier box to cross-compile freeswitch from my raspi. I haven't done verifiable benchmarks, but it does seem to cut the compile time down considerably when you offload the compiling. Raspi seems to be gaining enough traction that it might be worthwhile to add a wiki page or two devoted to them with little tips and tricks to make life easier.
-Ray
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Ken http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org irc.freenode.net #freeswitch
It seems some linux distributions mount /tmp to tmpfs by default. Not so long time ago in Debian Wheezy (AFAIK Raspbian based on it) this were by defaults.<http://www.legendiary.at/2012/12/30/debian-wheezy-mounts-tmp-as-tmpfs-by-default-not-anymore/> Then they changed defaults. But Ruspbian ... don't know. 2013/3/28 Ken Rice <krice@freeswitch.org>
People that put /tmp in tmpfs should be shot!
On 3/27/13 4:15 PM, "Dmitry Lysenko" <dvl36.ripe.nick@gmail.com> wrote:
This is strange. I build vanilla kernels using debians make-kpkg without any problem. Swap does not used. Maybe freeswitch .deb build script writes intermediate sources to tmpfs (in RAM)?
2013/3/27 Michael Whapples <mwhapples@aim.com>
Yes that is right, you will not hit out of memory issues if just doing a compile, but if using the debian packaging stuff you will. I think it is within the part where it gets the various sources and then produces the debian source tarball, so is not actually the compile stage.
Michael Whapples
On 27/03/2013 16:47, Dmitry Lysenko wrote:
Hi!
I builded freeswitch from sources on Seagate Goflex Home (1200Mhz ARMv5TE, *128Mb*, Debian Wheezy) many, many times. Never experiences 'out of memory'. Has HDD connected and swap enabled, but vm.swapiness set to 0, so swap do not even used. I checked this. Swap used in 'top' is always 0.
But I never used debian package build system for freeswitch.
Best Regards,
Dmitry.
2013/3/27 Michael Whapples <mwhapples@aim.com>
While not necessarily being much faster for compiling, I found you can build raspbian packages using the debian package stuff by using qemu on another computer. If you want to build raspbian packages I found that on my raspberrypi (a model B with 512MB of RAM) that it ran out of memory (I believe it happened in the earlier stages where it was getting the various source and either extracting or packing it into a source archive) and to use swap files is very slow and probably not good for the SD card anyway, qemu does overcome these limits.
I know that cross compiling might be faster but I never found enough information out there to help me get such a system up and running and I was unsure whether this would lead to a system where I could compile a raspbian package using the debian stuff of freeswitch. Qemu was relatively simple to set up (I think I mainly used a wiki page from the raspberrypi section of elinux.org <http://elinux.org> ).
Michael Whapples
On 27/03/2013 00:22, Raymond Chandler wrote:
On 13-03-26 05:52 AM, Peter P GMX wrote:
Freeswitch compiled native from GIT (this really takes a while)
For what it's worth, I've been playing with using ccache and distcc on a beefier box to cross-compile freeswitch from my raspi. I haven't done verifiable benchmarks, but it does seem to cut the compile time down considerably when you offload the compiling. Raspi seems to be gaining enough traction that it might be worthwhile to add a wiki page or two devoted to them with little tips and tricks to make life easier.
-Ray
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
------------------------------ _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Ken
*http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org * irc.freenode.net #freeswitch
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (9)
-
Dave R. Kompel
-
Dmitry Lysenko
-
Ken Rice
-
Michael Collins
-
Michael Whapples
-
Peter P GMX
-
Peter Steinbach
-
Raymond Chandler
-
William King