Friday, 2020-09-18

*** fuentess has quit IRC00:21
*** vgoyal has quit IRC00:31
*** sameo has joined #kata-dev06:00
*** amorenoz has joined #kata-dev06:10
*** sameo has quit IRC06:15
*** jodh has joined #kata-dev06:40
*** dklyle has quit IRC06:41
*** sgarzare has joined #kata-dev06:43
*** stackedsax has quit IRC06:53
*** iamweswilson has quit IRC06:53
*** stackedsax has joined #kata-dev06:56
*** iamweswilson has joined #kata-dev06:56
*** fgiudici has joined #kata-dev07:26
*** davidgiluk has joined #kata-dev08:03
*** ailan__ has joined #kata-dev08:15
*** sameo has joined #kata-dev08:49
*** sameo has quit IRC08:57
*** sameo has joined #kata-dev10:26
*** ailan__ has quit IRC11:48
*** crobinso has joined #kata-dev13:19
*** dklyle has joined #kata-dev15:02
*** vgoyal has joined #kata-dev15:14
kata-irc-bot<fidencio> @archana.m.shinde, @jose.carlos.venegas.m, Vivek sent me a ping asking for what's the cache mode used by kata when using *9p*. I couldn't find that in the coe, anywhere, neither when spawning a VM using 9p. Do you have that info handy?15:31
kata-irc-bot<fidencio> Basically, Vivek is trying to setup an environment on his side where he can debug / compare based on what kata uses15:31
kata-irc-bot<jose.carlos.venegas.m> is it OK for you just the command line of qemu ?15:32
kata-irc-bot<jose.carlos.venegas.m> plus the mount flags?15:32
kata-irc-bot<fidencio> I have the qemu command line, but share yours if possible15:32
kata-irc-bot<fidencio> Maybe there's something different there15:32
vgoyalto begin with qemu options and mount flags will help15:33
vgoyalwhat caching option does kata use by default for virtio-9p15:33
kata-irc-bot<jose.carlos.venegas.m> sure15:33
kata-irc-bot<jose.carlos.venegas.m> for 9pfs15:34
kata-irc-bot<jose.carlos.venegas.m> it has15:34
kata-irc-bot<jose.carlos.venegas.m> -device virtio-*9p*-pci,disable-modern=true,fsdev=extra-*9p*-kataShared,mount_tag=kataShared,romfile= -fsdev local,id=extra-*9p*-kataShared,path=/run/kata-containers/shared/sandboxes/5b48b35747a1746552ca84afec45416f840d9bcd0c56da25090164bc527d0347/shared,security_model=none,multidevs=remap15:34
vgoyalI am assuming that everything is bind mounted in a single directory and we share that directory using single virtio-9p instance.15:35
vgoyalGoing by the documentation of 9p, I see that probably cache=none matches with cache=none of virtiofs. And cache=loose maps to cache=always I think. There does not seem to be an equivalent of cache=fs-cache and cache=,mmap15:42
kata-irc-bot<fidencio> What's the default used if nothing is passed?15:44
kata-irc-bot<jose.carlos.venegas.m> vgoyal hey15:44
kata-irc-bot<jose.carlos.venegas.m> we have security_model=none15:45
kata-irc-bot<jose.carlos.venegas.m> for 9pfs15:45
vgoyalcarlos, what about mount options used inside the guest15:46
vgoyallooking at the 9p kernel code looks like cache=none is default if user does not specify one.15:50
vgoyalv9ses->cache = CACHE_NONE;15:50
kata-irc-bot<jose.carlos.venegas.m> yes15:52
kata-irc-bot<jose.carlos.venegas.m> let me get the flags15:52
kata-irc-bot<jose.carlos.venegas.m> vgoyal: sharedDir9pOptions          = []string{“trans=virtio,version=9p2000.L,cache=mmap”, “nodev”}15:53
vgoyalaha... so it uses cache=mmap. Which does not have a direct equivalent in virtiofs. hmm.....15:54
* vgoyal will need to study to code more to figure out what cache=mmap is doing. It seems to suggest that it does some caching to support mmap15:54
kata-irc-bot<jose.carlos.venegas.m> got it15:55
vgoyalcache=none will probably mmap() as there is no page cache15:55
kata-irc-bot<jose.carlos.venegas.m> just to to confirm15:55
kata-irc-bot<jose.carlos.venegas.m> ``` mount | grep 9p kataShared on / type 9p (rw,dirsync,nodev,relatime,mmap,access=client,trans=virtio) kataShared on /etc/resolv.conf type 9p (rw,dirsync,nodev,relatime,mmap,access=client,trans=virtio) kataShared on /etc/hostname type 9p (rw,dirsync,nodev,relatime,mmap,access=client,trans=virtio) kataShared on /etc/hosts type 9p (rw,dirsync,nodev,relatime,mmap,access=client,trans=virtio)```15:55
vgoyals/mmap()/fail mmap()15:55
vgoyalcarlos, thanks. I will setup my 9p with these mount options.15:56
kata-irc-bot<jose.carlos.venegas.m> vgoyal: are you doing your testing on top of kata ? or just standalone qemu ?15:56
vgoyalcarlos, I have standalone qemu.15:56
vgoyalno kata15:56
vgoyaljust booted into a VM using qemu and trying to configure both 9p as well as virtiofs15:56
kata-irc-bot<jose.carlos.venegas.m> got it :slightly_smiling_face: , I am decopling our tests of or metrics CI  to allow you you just use kata-deploy (the easier way install kata)15:57
kata-irc-bot<jose.carlos.venegas.m> I wonder if that may be helpful to you ?15:57
vgoyalcarlos, i think what will be helpful for me is that if we can narrow down performance problems in terms of specific fio workload15:57
vgoyali am assuming you are running fio for your performance benchmarking?15:58
kata-irc-bot<jose.carlos.venegas.m> yes, the same that Ganesh reported15:58
kata-irc-bot<jose.carlos.venegas.m> https://github.com/kata-containers/runtime/issues/281515:58
vgoyalyep.15:58
vgoyalThen I could run fio locally and figure out what was going on and propose a fix upstream15:59
kata-irc-bot<jose.carlos.venegas.m> got it16:00
kata-irc-bot<jose.carlos.venegas.m> please let me know if you need more information about they way I tests16:00
kata-irc-bot<jose.carlos.venegas.m> I will send some steps on how I use and run kata at the end of the day16:00
kata-irc-bot<jose.carlos.venegas.m> just in case it is helpful to you16:00
vgoyalcarlos, sure, do send me the steps you use to set it up. I can give that a try as well16:00
vgoyali do want to know how exactly do you test it and what tests are you running16:01
kata-irc-bot<jose.carlos.venegas.m> sure :slightly_smiling_face:16:02
*** sameo has quit IRC16:07
*** sgarzare has quit IRC16:14
*** fuentess has joined #kata-dev16:23
*** jodh has quit IRC17:04
*** fgiudici has quit IRC17:21
*** irclogbot_0 has quit IRC18:19
*** irclogbot_2 has joined #kata-dev18:23
*** irclogbot_2 has quit IRC18:31
*** sameo has joined #kata-dev18:35
*** irclogbot_0 has joined #kata-dev18:35
*** davidgiluk has quit IRC19:23
*** pcaruana has quit IRC19:26
*** sameo has quit IRC21:13
*** tmhoang has quit IRC22:09
*** tmhoang has joined #kata-dev22:19
*** Yarboa has quit IRC22:21
*** vgoyal has quit IRC22:24
*** fuentess has quit IRC22:51
*** crobinso has quit IRC23:50

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!