From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,f03ffdf470e3c559 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.k-dsl.de!news.eternal-september.org!news.motzarella.org!motzarella.org!registered.motzarella.org!Colin_Paul_Gloster From: Colin Paul Gloster Newsgroups: comp.lang.ada Subject: Re: Interesting performance quirk. Date: Fri, 31 Oct 2008 13:41:51 +0000 Organization: A noiseless patient Spider Message-ID: References: <4903c066$0$28676$4d3efbfe@news.sover.net> <49045079$0$28711$4d3efbfe@news.sover.net> <4906f908$0$5781$4d3efbfe@news.sover.net> <4909993f$0$5756$4d3efbfe@news.sover.net> Reply-To: Colin Paul Gloster Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: registered.motzarella.org U2FsdGVkX19os4PIEG9TrE/L4BEvZ1JV2mnzVmUWRosM+Xu3G3tkVkJaNnbVC2BVV0HJ9Pp2hPlhGItMhPHBmqPtYKENTm/dmL50+KUgYZEnS5c5scmDqUPcfO74CB0EAuGovQkAqGsbXG8dCtBSoMIibVY7mvyz X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers NNTP-Posting-Date: Fri, 31 Oct 2008 13:41:50 +0000 (UTC) In-Reply-To: <4909993f$0$5756$4d3efbfe@news.sover.net> X-Auth-Sender: U2FsdGVkX1/nvIYZG+PIVBnkC3RnUEgUnB5ajrWJ2/APKR57jokQI12us5CCdLkR1CugCWfnxaA= Cancel-Lock: sha1:57a4Yv2KEYTqdjmC2TdWXDMp9TY= X-X-Sender: Colin_Paul_Gloster@gian.fis.uc.pt Xref: g2news1.google.com comp.lang.ada:2538 Date: 2008-10-31T13:41:51+00:00 List-Id: On Thu, 30 Oct 2008, Peter C. Chapin wrote: |------------------------------------------------------------------------| |"Colin Paul Gloster wrote: | | | |> Earlier this year I had used QEMU on Windows (possibly not Windows XP)| |> to have a GNU/Linux distribution (possibly RedHat) emulated. I ran a | |> Bourne shell script or a Bourne Again Shell script in the emulated | |> system which made thousands of fairly short I/O transactions. The | |> emulated system including its pretend harddisk were kept small enough | |> (no more than a few hundred megabytes) to be kept solely in the real | |> physical primary memory instead of relying on virtual memory. | |> | |> It was faster than running the same script on Cygwin on the same | |> machine. | | | |That's interesting. I think it's probably conventional wisdom that doing| |I/O in a VM would be slower than outside the virtual machine. I'm sure | |that's true in many cases, although the situation you described shows | |that it's not always true." | |------------------------------------------------------------------------| For clarity, I explain that the I/O of the virtual machine which I referred to was merely I/O to its emulated filesystems, all of which together plus the emulated memory were small enough to fit into the genuine physical memory of the host operating system. |------------------------------------------------------------------------| |"My program [..] the memory | |block I work over is only 1 MB long so I don't think paging would be an | |issue (there is no disk activity when I run it). [..] | | | |[..]" | |------------------------------------------------------------------------| Your program's memory block's size might be of the order of one megabyte, but I do not know whether the emulated filesystems which you used were also small enough to fit into emulated memory. However, this does not explain why one program you have tried has been sped up by emulation whereas another has not been sped up.