The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


CIFS readahead messages
#1
@Tim Curtis 

A curious issue was brought to light in a thread about playback dropouts started yesterday.  @yage2046  mentioned almost as an afterthought

Quote:I also had some strange messages in my logs related to CIFS (my music folder is being shared from a Mac mini). It was writing 'CIFS: __readahead_batch() returned' repeatedly to /var/log/messages as I was streaming a file.

I can repro this on various moOde 8.3.2 players running on different Pi models. The messages are journaled to /var/log/kern.log and, as mentioned, mirrored to /var/log/messages. I'm seeing 3 to 4 messages per second as I play a track from a SAMBA share on my NAS.

A casual search on the InterWeb™ turned up a number hits on the topic, all informative, but none definitive. The readahead feature was apparently introduced to the Linux CIFS code last summer and the message occurs because the contents of the local read cache are suspect (consult the CACHE COHERENCY section in man mount.cifs). I don't recall seeing them before.

It seems to me mitigation possibilities include
  • just change the journaling rules so the message isn't logged. This doesn't feel right to me - too much like putting a piece of black tape over the "check engine" light. However, if the messages are just an alert that the cache is being bypassed, then maybe no harm/no foul. That's one possible reading of the man page. (If only I understood "oplocks")
  • change the SMB mount options to force cache=none instead of the default cache=strict. This made the messages go away on my test system (I just appended ,cache=none to the list of mount options in the Advanced section of the Music source configuration panel). Does this cause a noticeable degradation of performance? I don't know. Note that I also tried cache=loose but still saw a flow of messages to the logs
  • no idea what else might be done.

Regards,
Kent
Reply


Messages In This Thread
CIFS readahead messages - by TheOldPresbyope - 05-06-2023, 02:41 PM
RE: CIFS readahead messages - by Tim Curtis - 05-06-2023, 03:12 PM

Forum Jump: