{"action":"opened","issue":{"url":"https://api.github.com/repos/scotch-io/scotch-box/issues/395","repository_url":"https://api.github.com/repos/scotch-io/scotch-box","labels_url":"https://api.github.com/repos/scotch-io/scotch-box/issues/395/labels{/name}","comments_url":"https://api.github.com/repos/scotch-io/scotch-box/issues/395/comments","events_url":"https://api.github.com/repos/scotch-io/scotch-box/issues/395/events","html_url":"https://github.com/scotch-io/scotch-box/issues/395","id":368591564,"node_id":"MDU6SXNzdWUzNjg1OTE1NjQ=","number":395,"title":"Can the performance be enhanced?","user":{"login":"gitressa","id":3491208,"node_id":"MDQ6VXNlcjM0OTEyMDg=","avatar_url":"https://avatars1.githubusercontent.com/u/3491208?v=4","gravatar_id":"","url":"https://api.github.com/users/gitressa","html_url":"https://github.com/gitressa","followers_url":"https://api.github.com/users/gitressa/followers","following_url":"https://api.github.com/users/gitressa/following{/other_user}","gists_url":"https://api.github.com/users/gitressa/gists{/gist_id}","starred_url":"https://api.github.com/users/gitressa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gitressa/subscriptions","organizations_url":"https://api.github.com/users/gitressa/orgs","repos_url":"https://api.github.com/users/gitressa/repos","events_url":"https://api.github.com/users/gitressa/events{/privacy}","received_events_url":"https://api.github.com/users/gitressa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-10T10:09:39Z","updated_at":"2018-10-10T10:09:39Z","closed_at":null,"author_association":"NONE","body":"I have bench-marked Scotch Box by downloading and installing Drupal 8, notorious for having many files. Interestingly, with NFS enabled, downloading and unpacking is much slower, whereas installing is faster. Without NFS, downloading and installing takes about the same time.\r\n\r\nAlso, after installation with NFS enabled, Scotch Box is much faster between clicking and the page being ready (~1 second), whereas without NFS it takes 2-3 seconds. Perhaps the file system works slower with NFS enabled, but database write is faster?\r\n\r\n**Method:**\r\n```\r\n$ date\r\n$ drush dl drupal --destination=/var/www/public --drupal-project-rename=d8.local -y\r\n$ date\r\n$ drush site-install --db-url=mysql://root:root@localhost/d8 -y;\r\n$ date\r\n```\r\n**Results**\r\n```\r\n* NFS Disabled = 64 seconds\r\ndownload: 39 sec.\r\ninstall: 25 sec.\r\n\r\nMon Oct  8 14:55:01 CEST 2018\r\n$ drush dl drupal --destination=/var/www/public --drupal-project-rename=no-nfs.local -y\r\nMon Oct  8 14:55:40 CEST 2018\r\n$ drush site-install --db-url=mysql://root:root@localhost/no-nfs -y;\r\nMon Oct  8 14:56:05 CEST 2018\r\n\r\n-----------------------------\r\n\r\n* NFS Enabled = 118 seconds\r\ndownload: 106 sec.\r\ninstall: 12 sec.\r\n\r\nMon Oct  8 15:00:40 CEST 2018\r\n$ drush dl drupal --destination=/var/www/public --drupal-project-rename=nfs-enabled.local -y\r\nMon Oct  8 15:02:26 CEST 2018\r\n$ drush site-install --db-url=mysql://root:root@localhost/nfs-enabled -y;\r\nMon Oct  8 15:02:38 CEST 2018\r\n\r\n```\r\nVagrant file, default (no NFS):\r\n```\r\nVagrant.configure(\"2\") do |config|\r\n\r\n    config.vm.box = \"scotch/box\"\r\n    config.vm.network \"private_network\", ip: \"192.168.33.10\"\r\n    config.vm.hostname = \"scotchbox\"\r\n    config.vm.synced_folder \".\", \"/var/www\", :mount_options => [\"dmode=777\", \"fmode=666\"]\r\n\r\n    # Optional NFS. Make sure to remove other synced_folder line too\r\n    # config.vm.synced_folder \".\", \"/var/www\", :nfs => { :mount_options => [\"dmode=777\",\"fmode=666\"] }\r\n\r\nend\r\n```\r\nVagrant file, NFS-enabled:\r\n```\r\nVagrant.configure(\"2\") do |config|\r\n\r\n    config.vm.box = \"scotch/box\"\r\n    config.vm.network \"private_network\", ip: \"192.168.33.10\"\r\n    config.vm.hostname = \"scotchbox\"\r\n    #config.vm.synced_folder \".\", \"/var/www\", :mount_options => [\"dmode=777\", \"fmode=666\"]\r\n\r\n    # Optional NFS. Make sure to remove other synced_folder line too\r\n    config.vm.synced_folder \".\", \"/var/www\", :nfs => { :mount_options => [\"dmode=777\",\"fmode=666\"] }\r\n\r\nend\r\n```\r\n"}}
{"actor":{"display_login":"gitressa"}}