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

Matt Jordan reviewboard at asterisk.org
Thu Aug 8 13:42:46 CDT 2013


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

(Updated Aug. 8, 2013, 6:42 p.m.)


Status
------

This change has been marked as submitted.


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/20130808/6ce1083d/attachment.htm>


More information about the asterisk-dev mailing list