home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Support
Watch / Listen Media
Television (MyTV frontend and TV-Server)
Only a few channels are stuttering over a 100Mbps LAN
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="CCob" data-source="post: 396059" data-attributes="member: 84421"><p>I also believe it's the FileReader class that could be the problem, it's somewhat unoptimized for streaming needs in my opinion. The Windows cache manager and the read ahead thread when using synchronous IO is usually OK, but sometimes when the machine CPU spikes or disk IO increases then the read ahead inside the windows cache manager can suffer incurring delays when reading from disk.</p><p></p><p>I have offered to help with this here</p><p></p><p><a href="https://forum.team-mediaportal.com/development-91/single-timeshift-file-mantis-issue-0001862-a-56945/" target="_blank">https://forum.team-mediaportal.com/development-91/single-timeshift-file-mantis-issue-0001862-a-56945/</a> </p><p></p><p>and also PM'ed the dev/reporter assigned to this task but nobody seems to want my help.</p><p></p><p>Magnus, like you say, asynchronous IO would be the best way to improve this and also loose the dreaded MultiFileReader class. I was thinking of setting up completion port threads (perhaps 2 threads per CPU) for both reading and writing that is shared among all instances of a new FileReader/Writer class (for streaming recordings) and a derived CircularFileReader/Writer class (for time shifting) which pre allocates the file before anything is written to it, and reading and writing will be done in a circular fashion so that the timeshift file doesn't grow any bigger.</p><p></p><p>But since I have had no feedback from devs yet I don't want to start on anything as completion ports are time consuming and can be difficult to debug.</p></blockquote><p></p>
[QUOTE="CCob, post: 396059, member: 84421"] I also believe it's the FileReader class that could be the problem, it's somewhat unoptimized for streaming needs in my opinion. The Windows cache manager and the read ahead thread when using synchronous IO is usually OK, but sometimes when the machine CPU spikes or disk IO increases then the read ahead inside the windows cache manager can suffer incurring delays when reading from disk. I have offered to help with this here [URL="https://forum.team-mediaportal.com/development-91/single-timeshift-file-mantis-issue-0001862-a-56945/"]https://forum.team-mediaportal.com/development-91/single-timeshift-file-mantis-issue-0001862-a-56945/[/URL] and also PM'ed the dev/reporter assigned to this task but nobody seems to want my help. Magnus, like you say, asynchronous IO would be the best way to improve this and also loose the dreaded MultiFileReader class. I was thinking of setting up completion port threads (perhaps 2 threads per CPU) for both reading and writing that is shared among all instances of a new FileReader/Writer class (for streaming recordings) and a derived CircularFileReader/Writer class (for time shifting) which pre allocates the file before anything is written to it, and reading and writing will be done in a circular fashion so that the timeshift file doesn't grow any bigger. But since I have had no feedback from devs yet I don't want to start on anything as completion ports are time consuming and can be difficult to debug. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
Watch / Listen Media
Television (MyTV frontend and TV-Server)
Only a few channels are stuttering over a 100Mbps LAN
Contact us
RSS
Top
Bottom