On Saturday, December 20, 2014 at 1:08 AM, Ben Coman wrote:
Just some thoughts that arose as I skipped along the web...With the idea of using Pharo in the cloud, I was thinking of howPharoNOS[1] is basing off top of the Linux kernel, but the examplesindicate its operating in User Mode. So I was wondering aboutperformance being greater[2] if the CogVM ran in Kernel Mode. Howevermaybe this could get tangled in the GPL license of the kernel.Now I believe FreeBSD/NetBSD license is compatible with COG's MITlicense, so that seems a better option for eliminating layers of theoperating system. They both[3][4] have pre-built Amazon Machine Imagesto run on EC2, as well as instructions[5] to build your own AMI. Sopotentially we could build an AMI with the CogVM linked to theFreeBSDKernel operating in Kernel Mode, with no User Mode. The lack ofdirect access to memory from the Image, and probably single applicationfocus should be sufficient security to forgo User Mode, and run faster.But we could go a step further. Runing in the cloud relies heavily onvirtualisation, and for performance[6], most likely on the OS'sparavirtualisation interface - to Xen for example. So from Cog, why notinterface direct to the Xen FrontEndDriver[7] and eliminate the DomUoperating system all together. What I understand from [6] is that Xen'sparavirtualisation hooks makes it much easier to boot, than booting onthe bare metal of a fully-virtualised system. So the former seems moreachievable than the latter (which was the only option in years past),and also be more portable as technology evolves, to any platform Xenruns on.Squeak/Pharo on Cog-Xen could be a good choice for a Cloud OperatingSystem[8]. Maybe a good student research project?cheers -ben