Docker Community Forums

Share and learn in the Docker community.

Will OSXFS provide inotify events at some point?


(Alex Valiushko) #1

Expected behavior

App can use inotify to observe FS events of mounted volumes.

Actual behavior

App reverts to polling mechanism and stresses out the CPU. This doesn’t happen on linux-host mounted folders, only on osxfs mounts.

Information

> pinata diagnose -u
OS X: version 10.11.5 (build: 15F34)
Docker.app: version v1.11.1-beta12
Running diagnostic tests:
[OK]      Moby booted
[OK]      driver.amd64-linux
[OK]      vmnetd
[OK]      osxfs
[OK]      db
[OK]      slirp
[OK]      menubar
[OK]      environment
[OK]      Docker
[OK]      VT-x

Docker logs are being collected into /tmp/20160518-172340.tar.gz
Most specific failure is: No error was detected
Your unique id is: D53B6516-DD33-4F24-BDC7-718C1628EDD0
Please quote this in all correspondence.

Steps to reproduce the behavior

  1. Create an npm app container, configured to run webpack-dev-server as your app CMD
  2. Run it with host repo folder mounted over the application source

(David Sheets) #2

Hi Alex,

inotify events are supported on shared volumes; you may have found a bug. Could you please post an example npm app container configured to run webpack-dev-server that exhibits this issue?

Thanks for participating in the Docker for Mac Beta!

David


(Alex Valiushko) #3

Sorry for the false alarm, I dug deeper into the matter last night and it appears to be connected with one of the webpack dependencies not installing correctly.

The load difference is still there, but it uses polling in both cases – it is just less CPU intensive in the local folder case. Probably connected to this discussion File access in mounted volumes extremely slow, CPU bound

Thanks!