rbl wrote: 
> Makes sense so I did the following to test read/write speeds of 1GB in
> 1kB chunks (I am pretty new to Linux)
> 
> time dd bs=1K count=1000000 if=/dev/zero of=testdata conv=fdatasync #
> write speed - 1GB total
> sync && echo -n 3 | sudo tee /proc/sys/vm/drop_caches # flush cache
> time dd bs=1K if=testdata of=/dev/null # read speed
> 
> And I still get a write speed of 9MB/s and read of 42MB/s

AFAICT LMS does read of "source"  data in 32kBytes chunks which should
only improve things compared to 1K.

LMS request chunks of data to fill a player buffer.  Playing only starts
when buffer has reached a threshold.  The player will indicate underrun
when no data left in buffer to play.
Player has two buffer input for encoded data and output for decoded
data.  

>From log below it looks like input buffer is about 2Mbytes (2,093,152)
and output is about (1,764,000). 
The input buffer will take about 63 x 32kbyte chunks to fill and it took
LMS from 44:22.13 to 44:22.73  to do it. 
So LMS is initially supplying data at about 2,093,152/0.6 =
3.4Mbytes/sec - so something is causing a delay or not letting LMS
service an I/O request.

If you are still running LMS 8.1.2  - it is old (abt Jan 2021)  please
upgrade just to eliminate old bugs. IIRC While there have been many bug
fixes, there were some in early 2021 relating to waiting for I/O.


Code:
--------------------
    
  [22-11-09 20:44:22.1310] Slim::Player::Player::_buffering (1144) Buffering... 
40960 / 2093152
  [22-11-09 20:44:22.1350] Slim::Player::StreamingController::_eventAction 
(272) 00:00:00:00:00:00: StatusHeartbeat in BUFFERING-STREAMING -> 
Slim::Player::StreamingController::_NoOp
  [22-11-09 20:44:22.4319] Slim::Player::Player::_buffering (1144) Buffering... 
1212416 / 2093152
  [22-11-09 20:44:22.4322] Slim::Player::Player::_buffering (1145)   +output... 
229376 / 1764000
  [22-11-09 20:44:22.4337] Slim::Player::StreamingController::_eventAction 
(272) 00:00:00:00:00:00: StatusHeartbeat in BUFFERING-STREAMING -> 
Slim::Player::StreamingController::_NoOp
  [22-11-09 20:44:22.7330] Slim::Player::Player::_buffering (1144) Buffering... 
2097151 / 2093152
  [22-11-09 20:44:22.7336] Slim::Player::Player::_buffering (1145)   +output... 
3342336 / 1764000
  [22-11-09 20:44:22.7338] Slim::Player::StreamingController::playerBufferReady 
(2278) 00:00:00:00:00:00
  
--------------------


------------------------------------------------------------------------
bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=117034

_______________________________________________
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter

Reply via email to