Skip to contentSkip to conversation

Add KSM test

PATCH Jiri Zupka 2 participants 2 messages Sep 16, 2009 1 message not in the archive KVM

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 83259492.232221253106465155.JavaMail.root@zmail05.collab.prod.int.phx2.redhat.com

Jiri Zupka

author
#1 lore raw
Quoted 18 lines · ----- "Dor Laor
Quoted 3 lines · Jiri Zupka
Quoted 3 lines

After a quick review I have the following questions:
1. Why did you implement the guest tool in 'c' and not in python? Python is much simpler and you can share some code with the

server.

Quoted 1 line
Quoted 1 line

This 'test protocol' would also be easier to understand this

way.

Quoted 6 lines

We need speed and the precise control of allocate memory in pages.

Quoted 1 line

2. IMHO there is no need to use select, you can do blocking read.

We replace socket communication by interactive program communication

via ssh/telnet

Quoted 2 lines
Quoted 2 lines

3. Also you can use plain malloc without the more complex ( a bit)

mmap.

Quoted 1 line
Quoted 8 lines
Quoted 1 line

We need address exactly the memory pages. We can't allow shift of

the data in memory.

You can use the tmpfs+dd idea instead of the specific program as I detailed before. Maybe some other binary can be used. My intention is to
simplify the test/environment as much as possible.

We need compatibility with others system, like Windows etc.. We want to add support for others system in next version

Quoted 5 lines
Quoted 5 lines

--
To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
Quoted 24 lines · Jiri Zupka
Quoted 21 lines · ----- "Dor Laor
Quoted 3 lines · Jiri Zupka
Quoted 3 lines

After a quick review I have the following questions:
1. Why did you implement the guest tool in 'c' and not in python? Python is much simpler and you can share some code with the

server.

Quoted 1 line
Quoted 1 line

This 'test protocol' would also be easier to understand this

way.

Quoted 6 lines

We need speed and the precise control of allocate memory in pages.

Quoted 1 line

2. IMHO there is no need to use select, you can do blocking read.

We replace socket communication by interactive program communication

via ssh/telnet

Quoted 2 lines
Quoted 2 lines

3. Also you can use plain malloc without the more complex ( a bit)

mmap.

Quoted 2 lines

We need address exactly the memory pages. We can't allow shift of

the data in memory.

Quoted 8 lines
Quoted 5 lines

You can use the tmpfs+dd idea instead of the specific program as I detailed before. Maybe some other binary can be used. My intention is to
simplify the test/environment as much as possible.

We need compatibility with others system, like Windows etc.. We want to add support for others system in next version

KSM is a host feature and should be agnostic to the guest. Also I don't think your code will compile on windows...

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

--
To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html