[pve-devel] test: increase migrate_set_downtime only if expected_downtime have more than 30 iterations > 0

Alexandre DERUMIER aderumier at odiso.com
Thu Dec 27 11:39:41 CET 2012


this give me, playing a full hd movie with vlc, setting set_migrate_downtime = 0 in monitor to force never ending migration


Dec 27 11:35:14 starting migration of VM 99999 to node 'kvmtest2' (10.3.94.47)
Dec 27 11:35:14 copying disk images
Dec 27 11:35:14 starting VM 99999 on remote node 'kvmtest2'
Dec 27 11:35:17 starting migration tunnel
Dec 27 11:35:17 starting online/live migration on port 60000
Dec 27 11:35:17 migrate_set_speed: 8589934592
Dec 27 11:35:20 migration status: active (transferred 60014389, remaining 8321499136), total 8397455360, expected downtime 0)
Dec 27 11:35:22 migration status: active (transferred 118943541, remaining 8262569984), total 8397455360, expected downtime 0)
Dec 27 11:35:24 migration status: active (transferred 171531122, remaining 7744278528), total 8397455360, expected downtime 0)
Dec 27 11:35:26 migration status: active (transferred 192233068, remaining 6194102272), total 8397455360, expected downtime 0)
Dec 27 11:35:28 migration status: active (transferred 246040543, remaining 5979430912), total 8397455360, expected downtime 0)
Dec 27 11:35:30 migration status: active (transferred 315773381, remaining 5731590144), total 8397455360, expected downtime 0)
Dec 27 11:35:33 migration status: active (transferred 368485540, remaining 5675868160), total 8397455360, expected downtime 0)
Dec 27 11:35:35 migration status: active (transferred 428779952, remaining 5610283008), total 8397455360, expected downtime 0)
Dec 27 11:35:37 migration status: active (transferred 497151429, remaining 5537632256), total 8397455360, expected downtime 0)
Dec 27 11:35:39 migration status: active (transferred 556630335, remaining 5474508800), total 8397455360, expected downtime 0)
Dec 27 11:35:41 migration status: active (transferred 605880674, remaining 5425115136), total 8397455360, expected downtime 0)
Dec 27 11:35:43 migration status: active (transferred 668934508, remaining 5362020352), total 8397455360, expected downtime 0)
Dec 27 11:35:45 migration status: active (transferred 728580546, remaining 5302022144), total 8397455360, expected downtime 0)
Dec 27 11:35:47 migration status: active (transferred 792089033, remaining 5238484992), total 8397455360, expected downtime 0)
Dec 27 11:35:49 migration status: active (transferred 849027547, remaining 5181472768), total 8397455360, expected downtime 0)
Dec 27 11:35:52 migration status: active (transferred 900366950, remaining 5129564160), total 8397455360, expected downtime 0)
Dec 27 11:35:54 migration status: active (transferred 966267160, remaining 5048258560), total 8397455360, expected downtime 0)
Dec 27 11:35:56 migration status: active (transferred 1032491263, remaining 4965363712), total 8397455360, expected downtime 0)
Dec 27 11:35:58 migration status: active (transferred 1091023625, remaining 4904693760), total 8397455360, expected downtime 0)
Dec 27 11:36:00 migration status: active (transferred 1153651584, remaining 4841578496), total 8397455360, expected downtime 0)
Dec 27 11:36:02 migration status: active (transferred 1213887660, remaining 4780113920), total 8397455360, expected downtime 0)
Dec 27 11:36:04 migration status: active (transferred 1271346533, remaining 4721897472), total 8397455360, expected downtime 0)
Dec 27 11:36:06 migration status: active (transferred 1329423800, remaining 4663480320), total 8397455360, expected downtime 0)
Dec 27 11:36:08 migration status: active (transferred 1393660635, remaining 4585472000), total 8397455360, expected downtime 0)
Dec 27 11:36:10 migration status: active (transferred 1452513281, remaining 4504449024), total 8397455360, expected downtime 0)
Dec 27 11:36:12 migration status: active (transferred 1505749570, remaining 4432076800), total 8397455360, expected downtime 0)
Dec 27 11:36:15 migration status: active (transferred 1554344549, remaining 4366565376), total 8397455360, expected downtime 0)
Dec 27 11:36:17 migration status: active (transferred 1619578910, remaining 4278558720), total 8397455360, expected downtime 0)
Dec 27 11:36:19 migration status: active (transferred 1683793475, remaining 4191129600), total 8397455360, expected downtime 0)
Dec 27 11:36:21 migration status: active (transferred 1735428089, remaining 4120928256), total 8397455360, expected downtime 0)
Dec 27 11:36:23 migration status: active (transferred 1750645274, remaining 2090704896), total 8397455360, expected downtime 0)
Dec 27 11:36:25 migration status: active (transferred 1765266124, remaining 49160192), total 8397455360, expected downtime 1446)
Dec 27 11:36:25 migration status: active (transferred 1770562268, remaining 43798528), total 8397455360, expected downtime 1446)
Dec 27 11:36:26 migration status: active (transferred 1771348702, remaining 43003904), total 8397455360, expected downtime 1446)
Dec 27 11:36:26 migration status: active (transferred 1772032742, remaining 42287104), total 8397455360, expected downtime 1446)
Dec 27 11:36:26 migration status: active (transferred 1772524272, remaining 41754624), total 8397455360, expected downtime 1446)
Dec 27 11:36:27 migration status: active (transferred 1778344788, remaining 35524608), total 8397455360, expected downtime 1446)
Dec 27 11:36:27 migration status: active (transferred 1787274107, remaining 26435584), total 8397455360, expected downtime 1446)
Dec 27 11:36:27 migration status: active (transferred 1799992329, remaining 13135872), total 8397455360, expected downtime 1446)
Dec 27 11:36:28 migration status: active (transferred 1809998859, remaining 3121152), total 8397455360, expected downtime 1446)
Dec 27 11:36:28 migration status: active (transferred 1819714629, remaining 26615808), total 8397455360, expected downtime 2260)
Dec 27 11:36:29 migration status: active (transferred 1835214095, remaining 10289152), total 8397455360, expected downtime 2260)
Dec 27 11:36:29 migration status: active (transferred 1849927073, remaining 20336640), total 8397455360, expected downtime 1119)
Dec 27 11:36:30 migration status: active (transferred 1872819799, remaining 21458944), total 8397455360, expected downtime 868)
Dec 27 11:36:30 migration status: active (transferred 1887827663, remaining 5959680), total 8397455360, expected downtime 868)
Dec 27 11:36:31 migration status: active (transferred 1904113466, remaining 18857984), total 8397455360, expected downtime 1693)
Dec 27 11:36:32 migration status: active (transferred 1911146340, remaining 11653120), total 8397455360, expected downtime 1693)
Dec 27 11:36:32 migration status: active (transferred 1935341667, remaining 14888960), total 8397455360, expected downtime 17276)
Dec 27 11:36:33 migration status: active (transferred 1949960301, remaining 229376), total 8397455360, expected downtime 17276)
Dec 27 11:36:33 migration status: active (transferred 1957709971, remaining 18403328), total 8397455360, expected downtime 2107)
Dec 27 11:36:34 migration status: active (transferred 1983154434, remaining 19345408), total 8397455360, expected downtime 6106)
Dec 27 11:36:34 migration status: active (transferred 1991067992, remaining 11079680), total 8397455360, expected downtime 6106)
Dec 27 11:36:35 migration status: active (transferred 2004310592, remaining 23531520), total 8397455360, expected downtime 2498)
Dec 27 11:36:35 migration status: active (transferred 2015623862, remaining 11735040), total 8397455360, expected downtime 2498)
Dec 27 11:36:36 migration status: active (transferred 2038152443, remaining 8437760), total 8397455360, expected downtime 4003)
Dec 27 11:36:36 migration status: active (transferred 2046250318, remaining 26140672), total 8397455360, expected downtime 1086)
Dec 27 11:36:37 migration status: active (transferred 2060717509, remaining 11186176), total 8397455360, expected downtime 1086)
Dec 27 11:36:37 migration status: active (transferred 2069642788, remaining 1871872), total 8397455360, expected downtime 1086)
Dec 27 11:36:37 migration status: active (transferred 2077097530, remaining 13299712), total 8397455360, expected downtime 3297)
Dec 27 11:36:38 migration status: active (transferred 2093809315, remaining 22773760), total 8397455360, expected downtime 1365)
Dec 27 11:36:38 migration status: active (transferred 2103815905, remaining 12513280), total 8397455360, expected downtime 1365)
Dec 27 11:36:38 migrate_set_downtime: 1
Dec 27 11:36:39 migration speed: 97.56 MB/s - downtime 737 ms
Dec 27 11:36:39 migration status: completed
Dec 27 11:36:44 migration finished successfuly (duration 00:01:30)
TASK OK


----- Mail original ----- 

De: "Alexandre Derumier" <aderumier at odiso.com> 
À: pve-devel at pve.proxmox.com 
Envoyé: Jeudi 27 Décembre 2012 11:14:24 
Objet: [pve-devel] test: increase migrate_set_downtime only if expected_downtime have more than 30 iterations > 0 

This is a test attempt. (apply on top on 3 others patchs). 

The idea is to use default 30ms qemu downtime value for migration. 

If the expected_downtime is more than 30 iterations > 0 (could be polished, maybe some average stats can be better), 
then it's like a never ending migration, so we set to the migrate_set_downtime to the 1s default value. (maybe can we use the expected_downtime average as target value?) 

So, We could get the lowest downtime if the memory workload can handle it, 
and for vm with big memory transfert, we upgrade the the value. 

This could also help to avoid hang of the monitor(until we set migrate_set_downtime?) 

_______________________________________________ 
pve-devel mailing list 
pve-devel at pve.proxmox.com 
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel 



More information about the pve-devel mailing list