[asterisk-dev] [Code Review] 2727: Improve disk writes for wav49

Matt Jordan reviewboard at asterisk.org
Wed Jul 31 17:43:47 CDT 2013


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/2727/
-----------------------------------------------------------

Review request for Asterisk Developers.


Bugs: ASTERISK-19595
    https://issues.asterisk.org/jira/browse/ASTERISK-19595


Repository: Asterisk


Description
-------

{quote}
Writing to a wav49 looks a lot like this:
 * Write GSM frame to end of file
 * Seek to end of file
 * Seek to header
 * Update file size
 * Seek to end of file
 * Repeat

This pattern negates any attempt to use the stdio buffering setup in ast_writefile(). It also results in many small writes that require a seek going to the disk each second which translates to terrible disk performance when there are multiple wav49 files being written at the same time.
{quote}


Diffs
-----

  /trunk/formats/format_wav_gsm.c 395904 

Diff: https://reviewboard.asterisk.org/r/2727/diff/


Testing
-------


Thanks,

Matt Jordan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20130731/48aa1ff0/attachment.htm>


More information about the asterisk-dev mailing list