[Asterisk-Dev] res_monitor improvement

Boris Bakchiev boris at jildent.com.au
Sun Aug 14 17:24:34 MST 2005


> > I'm thinking it would improve things a lot if res_monitor dumps the
> > audio to tmfs based /tmp or to ramdisk and then joins/copies the
files
> > to final destination after recording is complete.
> 
> I think the concept is good, but tmpfs filesystems are typically
> relatively small (ie 256MB or less). Depending on how busy the PBX
was,
> there could be situations where the tmpfs filesystem could fill up -
> meaning your suggested modifications would need to be able to handle
that.
> 
> Is the current res_monitor really so inefficient?

It is when it comes to writing.
No buffering at all as far as I can see.
All data gets dumped to hdd right away.
I guess linux caching should take care of it, but on a busy system I can
afford to dedicate 1GB ramdisk (or 1GB tmfs) for temporary storage of
files.




More information about the asterisk-dev mailing list