在 2012-11-27二的 04:58 -0200,Lucas Meneghel Rodrigues写道:
> On Tue, Nov 27, 2012 at 3:32 AM, Mike <[email protected]> wrote:
> > Hi all
> >
> > Now I try to test the KSM case in my machine.
> > the path: virt/kvm/tests/ksm_overcommit.py
> >
> > It has two cases , one is in serial mode other one is parallel mode
> >
> > for parallel mode it just create one VM and test KSM.
> > this shouldn't be a fault????
> 
> From the source code:
> 
> 409    max_vms = int(params.get("max_vms", 2))
> ...
> 563    # Creating other guest systems
> 564    for i in range(1, vmsc):
> 
> So I'm not sure why you thought the test only used a single vm.

if (params['ksm_mode'] == "parallel"):
439         vmsc = 1
440         overcommit = 1
441         mem = host_mem
442         # 32bit system adjustment

Yes you right, but it has changed in the next code, if
params['ksm_mode'] == "parallel" the vmsc will change to 1.

> 
> > KSM should work for more than one VM,
> 
> Yes, and that's precisely what the test does. You might want to get
> back to the source code. One of the mistakes we made on this one was
> to not put a docstring explaining the steps taken by the test. Copying
> Lukas.
> 
> Lukas, could you send us a patch with a docstring description of the test?
> 
> Cheers,
> 


_______________________________________________
Autotest-kernel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/autotest-kernel

Reply via email to