How small can an Asterisk system be, in terms of disk space utilized? I am looking for just asterisk, with mysql, postgresql, or sqlite, with PHP and Python. After finishing the build and removing the tools, how small can the whole system be? 100Mb, 200Mb? Can packages be used to build the whole system, like using debs and rpms alone? /vfclists
I think Astlinux comes in under 100MB. Ben M. Schorr Chief Executive Officer ______________________________________________ Roland Schorr & Tower www.rolandschorr.com bens at rolandschorr.com Twitter: http://www.twitter.com/bschorr Facebook: http://www.facebook.com/rolandschorr> -----Original Message----- > From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users- > bounces at lists.digium.com] On Behalf Of Frank Church > Sent: Monday, February 01, 2010 19:41 > To: asterisk-users at lists.digium.com > Subject: [asterisk-users] Smallest possible Asterisk VM > > How small can an Asterisk system be, in terms of disk space utilized? > > I am looking for just asterisk, with mysql, postgresql, or sqlite,with PHP and> Python. > > After finishing the build and removing the tools, how small can thewhole> system be? > > 100Mb, 200Mb? > > Can packages be used to build the whole system, like using debs andrpms> alone? > > /vfclists > > -- > __________________________________________________________ > ___________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users
On Tue, Feb 2, 2010 at 6:41 AM, Frank Church <voipfc at googlemail.com> wrote:> How small can an Asterisk system be, in terms of disk space utilized? > > I am looking for just asterisk, with mysql, postgresql, or sqlite, > with PHP and Python.AskoziaPBX is <30MB installed. It has Asterisk 1.6.1, nearly all of the modules and PHP. No external db support yet, and no need for python so far. It only has the minimum prompt set to cover what functionality is in the GUI: - http://www.askozia.com The biggest portion of your space is going to go to media. Music-on-hold can be limited to a single file but to have a complete set of prompts, it will cost you another 10MB installed or so. I think a truly minimal Asterisk install with externally stored media would come in at less than 20MB installed. If you optimize the kernel even further for your specific hardware and take out all unneeded user space utils, it should be less than 15MB installed. Hope that helps, -Michael
AstLinux is well under that. You could build a custom image that contains only what you want and have it under 30M. We have support for sqlite3, but not mysql or postgresql. You would have to build your own package to include python. Our build environment is based on buildroot, but has been heavily modified to suit our needs. Feel free to ask questions on the astlinux-devel mailing list. http://www.astlinux.org Darrick On 02/02/2010 12:02 AM, Ben Schorr wrote:> I think Astlinux comes in under 100MB. > > Ben M. Schorr > >> -----Original Message----- >> From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users- >> bounces at lists.digium.com] On Behalf Of Frank Church >> Sent: Monday, February 01, 2010 19:41 >> To: asterisk-users at lists.digium.com >> Subject: [asterisk-users] Smallest possible Asterisk VM >> >> How small can an Asterisk system be, in terms of disk space utilized? >> >> I am looking for just asterisk, with mysql, postgresql, or sqlite, > with PHP and >> Python. >> >> After finishing the build and removing the tools, how small can the > whole >> system be? >> >> 100Mb, 200Mb? >> >> Can packages be used to build the whole system, like using debs and > rpms >> alone? >> >> /vfclists
On Tue, 2 Feb 2010, Frank Church wrote:> How small can an Asterisk system be, in terms of disk space utilized?If depends on how much effort you're willing to put into making it small. This is one of my systems: Filesystem Size Used Avail Use% Mounted on /dev/ram0 136M 84M 53M 62% / So about 80MB, I know I can get it a lot smaller, but there's most of a text-based Linux install there too - a fairly full /bin, /usr/bin, etc. No *sql though - I've no need for it, but there is a full apache & php. Media files are stored elsewhere and I'm a bit lazy sbout that: Filesystem Size Used Avail Use% Mounted on /dev/hda3 189M 95M 94M 51% /data that's the full set of sounds, MOH in all formats except WAV. If I could be bothered, I could work out exactly which ones are used and dump the rest, but I don't think there's a need. This system has a single 256MB compact flash device and 256MB of RAM, of which just over half is given up for the root filing system ramdisk. http://unicorn.drogon.net/cutie.jpg Gordon
On Tue, Feb 02, 2010 at 05:41:20AM +0000, Frank Church wrote:> How small can an Asterisk system be, in terms of disk space utilized?Is disk-space your real issue? Disk space is cheap. Memory isn't that cheap, typically, on a VM environment. Likewise CPU usage. If you're on a hosted environment, you may also be limited on network bandwidth. I can give you some rough idea from the sie of our live CDs[1]. They use a compressed filesystem, so should generally assume that on a non-compressed file-system the disk usage is double[2]. A rather minimal install of Debian Lenny is some 110MB. This is a basic and non-optimized installation. Our live CD takes some 200MB and also includes Asterisk, PERL, Python (we needed it for AjaxTerm), Apache, and a bunch of other things. We didn't attempt to optimize it for space. We did not include a build envirnment, though. Other distributions tend to be much more "desktop" by default and thus need a "specialized" "minimal" version. This is often called JEOS (Just Enough OS). Such versions of at least Ubuntu and SuSE are available. My point is that maintainability is an important factor. What is your procedure for upgrading Asterisk? Upload a whole new image? This might be doable, e.g. if you set up a spare VM in advance. But you should be aware of this issue.> > I am looking for just asterisk, with mysql, postgresql, or sqlite, > with PHP and Python. > > After finishing the build and removing the tools, how small can the > whole system be? > > 100Mb, 200Mb?I suspect that you can easily get to 500MB with just about any distribution. Getting to 300MB and beyond may require some effort.> > Can packages be used to build the whole system, like using debs and rpms alone?[1] Our live CDs are based on Debian live. Debian-Live attempts to remain as close as possible to Debian proper. Their modifications to the original system, besides actually compressing the file system, are negligable (in terms of disk space usage). [2] You could use a compressed file system to save disk space. That would be trading disk space for CPU usage. It also means that disk access becomes slower, and I suspect this may hurt Asterisk. -- Tzafrir Cohen icq#16849755 jabber:tzafrir.cohen at xorcom.com +972-50-7952406 mailto:tzafrir.cohen at xorcom.com http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
I have developed a minimal call shop billing system that includes an Asterisk VM and I want it to be as small as to reduce the installation size. 100Mb is good On 2 February 2010 05:41, Frank Church <voipfc at googlemail.com> wrote:> How small can an Asterisk system be, in terms of disk space utilized? > > I am looking for just asterisk, with mysql, postgresql, or sqlite, > with PHP and Python. > > After finishing the build and removing the tools, how small can the > whole system be? > > 100Mb, 200Mb? > > Can packages be used to build the whole system, like using debs and rpms alone? > > /vfclists >