All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [Qemu-devel] where can I find the latest memory hot plugging patch for Qemu?
       [not found] ` <20140423174059.0026cfdf@thinkpad>
@ 2014-06-19  9:07   ` Kolk, G. van der
  2014-06-19  9:21     ` Kolk, G. van der
  0 siblings, 1 reply; 5+ messages in thread
From: Kolk, G. van der @ 2014-06-19  9:07 UTC (permalink / raw)
  To: Igor Mammedov; +Cc: Kolk, G. van der, qemu-devel

[-- Attachment #1: Type: text/plain, Size: 1589 bytes --]

Hi Igor,

I’m trying the memory hot plug. But I have trouble getting it to work. This is what happens. I tried some tested guest OSes and some untested.

I tried three flavours of linux with automatic or manual memory hot plug support:
CentOS 6 cpu hotplug: works memory hotplug: Kernel sees memory, but ext4 filesystem crashes, says it’s mounted readonly, but cannot execute anything to try and read the logs.
latest Ubuntu and debian: same problem

Windows 2012: cpu hotplug: works memory hotplug: windows keeps running, but does not see the memory. nothing shows up in event viewer.

Used commands to add memory:
(qemu) object_add memory-ram,id=mem1,size=1G
object_add memory-ram,id=mem1,size=1G
(qemu) device_add dimm,id=dimm1,memdev=mem1
device_add dimm,id=dimm1,memdev=mem1

Am I doing something wrong? How can I make this work? If you need any logs. Let me know which one.

Regards,

Gerrit

On 23 Apr 2014, at 17:40 , Igor Mammedov <imammedo@redhat.com<mailto:imammedo@redhat.com>> wrote:

On Wed, 23 Apr 2014 12:16:30 +0000
"Kolk, G. van der" <g.vander.kolk@vu.nl<mailto:g.vander.kolk@vu.nl>> wrote:

Dear Qemu developers,

I'm doing a masters thesis project which involves Qemu. Especially cpu and memory hot plugging. But I have a hard time  finding the right git repository which contains the latest memory hot plugging work. Can anyone please point me in the right direction?

the last version was posted here:
https://lists.gnu.org/archive/html/qemu-devel/2014-04/msg00734.html


Regards,

Gerrit van der Kolk


--
Regards,
 Igor


[-- Attachment #2: Type: text/html, Size: 3310 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] where can I find the latest memory hot plugging patch for Qemu?
  2014-06-19  9:07   ` [Qemu-devel] where can I find the latest memory hot plugging patch for Qemu? Kolk, G. van der
@ 2014-06-19  9:21     ` Kolk, G. van der
  2014-06-19 10:28       ` Kolk, G. van der
  0 siblings, 1 reply; 5+ messages in thread
From: Kolk, G. van der @ 2014-06-19  9:21 UTC (permalink / raw)
  To: Igor Mammedov; +Cc: qemu-devel


[-- Attachment #1.1: Type: text/plain, Size: 2007 bytes --]

Oops,

RTFM! :)

PS:
  Windows guest requires SRAT table for hotplug to work so add an extra option:
   -numa node
  to QEMU command line.


So status is, windows works. linux does not.

See attachment for more info

Regards,

Gerrit

On 19 Jun 2014, at 11:07 , Kolk, G. van der <g.vander.kolk@vu.nl<mailto:g.vander.kolk@vu.nl>> wrote:

Hi Igor,

I’m trying the memory hot plug. But I have trouble getting it to work. This is what happens. I tried some tested guest OSes and some untested.

I tried three flavours of linux with automatic or manual memory hot plug support:
CentOS 6 cpu hotplug: works memory h[cid:96E24CCA-FBAC-470C-BA12-A9A0C31EF5A5@mokum.bluefly.nl]otplug: Kernel sees memory, but ext4 filesystem crashes, says it’s mounted readonly, but cannot execute anything to try and read the logs.
latest Ubuntu and debian: same problem

Windows 2012: cpu hotplug: works memory hotplug: windows keeps running, but does not see the memory. nothing shows up in event viewer.

Used commands to add memory:
(qemu) object_add memory-ram,id=mem1,size=1G
object_add memory-ram,id=mem1,size=1G
(qemu) device_add dimm,id=dimm1,memdev=mem1
device_add dimm,id=dimm1,memdev=mem1

Am I doing something wrong? How can I make this work? If you need any logs. Let me know which one.

Regards,

Gerrit

On 23 Apr 2014, at 17:40 , Igor Mammedov <imammedo@redhat.com<mailto:imammedo@redhat.com>> wrote:

On Wed, 23 Apr 2014 12:16:30 +0000
"Kolk, G. van der" <g.vander.kolk@vu.nl<mailto:g.vander.kolk@vu.nl>> wrote:

Dear Qemu developers,

I'm doing a masters thesis project which involves Qemu. Especially cpu and memory hot plugging. But I have a hard time  finding the right git repository which contains the latest memory hot plugging work. Can anyone please point me in the right direction?

the last version was posted here:
https://lists.gnu.org/archive/html/qemu-devel/2014-04/msg00734.html


Regards,

Gerrit van der Kolk


--
Regards,
 Igor



[-- Attachment #1.2: Type: text/html, Size: 4416 bytes --]

[-- Attachment #2: Screen Shot 2014-06-19 at 11.19.58 .png --]
[-- Type: image/png, Size: 35925 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] where can I find the latest memory hot plugging patch for Qemu?
  2014-06-19  9:21     ` Kolk, G. van der
@ 2014-06-19 10:28       ` Kolk, G. van der
  2014-06-19 12:16         ` Igor Mammedov
  0 siblings, 1 reply; 5+ messages in thread
From: Kolk, G. van der @ 2014-06-19 10:28 UTC (permalink / raw)
  To: Igor Mammedov; +Cc: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 8592 bytes --]

This is probably more helpful:

Hotplug Mem Device
init_memory_mapping: 0000000100000000-0000000140000000
 0100000000 - 0140000000 page 2M
 [ffffea0003800000-ffffea00039fffff] PMD -> [ffff88000cc00000-ffff88000cdfffff] on node 0
 [ffffea0003a00000-ffffea0003bfffff] PMD -> [ffff88000c800000-ffff88000c9fffff] on node 0
 [ffffea0003c00000-ffffea0003dfffff] PMD -> [ffff88000c600000-ffff88000c7fffff] on node 0
 [ffffea0003e00000-ffffea0003ffffff] PMD -> [ffff88000c000000-ffff88000c1fffff] on node 0
 [ffffea0004000000-ffffea00041fffff] PMD -> [ffff88000be00000-ffff88000bffffff] on node 0
 [ffffea0004200000-ffffea00043fffff] PMD -> [ffff88000ba00000-ffff88000bbfffff] on node 0
Built 1 zonelists in Node order, mobility grouping on.  Total pages: 96442
Policy zone: Normal
nommu_map_sg: overflow 13fc02000+4096 of device mask ffffffff
ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
ata1.00: failed command: WRITE DMA
ata1.00: cmd ca/00:10:f0:b3:53/00:00:00:00:00/e0 tag 0 dma 8192 out
         res 50/00:00:f0:b3:53/00:00:00:00:00/a0 Emask 0x40 (internal error)
ata1.00: status: { DRDY }
ata1.00: configured for MWDMA2
ata1: EH complete
nommu_map_sg: overflow 13fc02000+4096 of device mask ffffffff
ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
ata1.00: failed command: WRITE DMA
ata1.00: cmd ca/00:10:f0:b3:53/00:00:00:00:00/e0 tag 0 dma 8192 out
         res 50/00:00:00:00:00/00:00:00:00:00/a0 Emask 0x40 (internal error)
ata1.00: status: { DRDY }
ata1.00: configured for MWDMA2
ata1: EH complete
nommu_map_sg: overflow 13fc02000+4096 of device mask ffffffff
ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
ata1.00: failed command: WRITE DMA
ata1.00: cmd ca/00:10:f0:b3:53/00:00:00:00:00/e0 tag 0 dma 8192 out
         res 50/00:00:00:00:00/00:00:00:00:00/a0 Emask 0x40 (internal error)
ata1.00: status: { DRDY }
ata1.00: configured for MWDMA2
ata1: EH complete
nommu_map_sg: overflow 13fc02000+4096 of device mask ffffffff
ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
ata1.00: failed command: WRITE DMA
ata1.00: cmd ca/00:10:f0:b3:53/00:00:00:00:00/e0 tag 0 dma 8192 out
         res 50/00:00:00:00:00/00:00:00:00:00/a0 Emask 0x40 (internal error)
ata1.00: status: { DRDY }
ata1.00: configured for MWDMA2
ata1: EH complete
nommu_map_sg: overflow 13fc02000+4096 of device mask ffffffff
ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
ata1.00: failed command: WRITE DMA
ata1.00: cmd ca/00:10:f0:b3:53/00:00:00:00:00/e0 tag 0 dma 8192 out
         res 50/00:00:00:00:00/00:00:00:00:00/a0 Emask 0x40 (internal error)
ata1.00: status: { DRDY }
ata1.00: configured for MWDMA2
ata1: EH complete
nommu_map_sg: overflow 13fc02000+4096 of device mask ffffffff
ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
ata1.00: failed command: WRITE DMA
ata1.00: cmd ca/00:10:f0:b3:53/00:00:00:00:00/e0 tag 0 dma 8192 out
         res 50/00:00:00:00:00/00:00:00:00:00/a0 Emask 0x40 (internal error)
ata1.00: status: { DRDY }
ata1.00: configured for MWDMA2
sd 0:0:0:0: [sda] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
sd 0:0:0:0: [sda] Sense Key : Aborted Command [current] [descriptor]
Descriptor sense data with sense descriptors (in hex):
        72 0b 00 00 00 00 00 0c 00 0a 80 00 00 00 00 00
        00 00 00 00
sd 0:0:0:0: [sda] Add. Sense: No additional sense information
sd 0:0:0:0: [sda] CDB: Write(10): 2a 00 00 53 b3 f0 00 00 10 00
ata1: EH complete
Aborting journal on device dm-0-8.
EXT4-fs error (device dm-0) in ext4_reserve_inode_write: Journal has aborted
EXT4-fs error (device dm-0) in ext4_dirty_inode: Journal has aborted
EXT4-fs error (device dm-0): ext4_journal_start_sb: Detected aborted journal
EXT4-fs (dm-0): Remounting filesystem read-only
nommu_map_sg: overflow 13fc04000+4096 of device mask ffffffff
ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
ata1.00: failed command: READ DMA
ata1.00: cmd c8/00:08:28:b1:90/00:00:00:00:00/e0 tag 0 dma 4096 in
         res 50/00:00:c0:dc:93/00:00:00:00:00/e0 Emask 0x40 (internal error)
ata1.00: status: { DRDY }
ata1.00: configured for MWDMA2
ata1: EH complete
nommu_map_sg: overflow 13fc04000+4096 of device mask ffffffff
ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
ata1.00: failed command: READ DMA
ata1.00: cmd c8/00:08:28:b1:90/00:00:00:00:00/e0 tag 0 dma 4096 in
         res 50/00:00:00:00:00/00:00:00:00:00/a0 Emask 0x40 (internal error)
ata1.00: status: { DRDY }
ata1.00: configured for MWDMA2
ata1: EH complete
nommu_map_sg: overflow 13fc04000+4096 of device mask ffffffff
ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
ata1.00: failed command: READ DMA
ata1.00: cmd c8/00:08:28:b1:90/00:00:00:00:00/e0 tag 0 dma 4096 in
         res 50/00:00:00:00:00/00:00:00:00:00/a0 Emask 0x40 (internal error)
ata1.00: status: { DRDY }
ata1.00: configured for MWDMA2
ata1: EH complete
nommu_map_sg: overflow 13fc04000+4096 of device mask ffffffff
ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
ata1.00: failed command: READ DMA
ata1.00: cmd c8/00:08:28:b1:90/00:00:00:00:00/e0 tag 0 dma 4096 in
         res 50/00:00:00:00:00/00:00:00:00:00/a0 Emask 0x40 (internal error)
ata1.00: status: { DRDY }
ata1.00: configured for MWDMA2
ata1: EH complete
nommu_map_sg: overflow 13fc04000+4096 of device mask ffffffff
ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
ata1.00: failed command: READ DMA
ata1.00: cmd c8/00:08:28:b1:90/00:00:00:00:00/e0 tag 0 dma 4096 in
         res 50/00:00:00:00:00/00:00:00:00:00/a0 Emask 0x40 (internal error)
ata1.00: status: { DRDY }
ata1.00: configured for MWDMA2
ata1: EH complete
nommu_map_sg: overflow 13fc04000+4096 of device mask ffffffff
ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
ata1.00: failed command: READ DMA
ata1.00: cmd c8/00:08:28:b1:90/00:00:00:00:00/e0 tag 0 dma 4096 in
         res 50/00:00:00:00:00/00:00:00:00:00/a0 Emask 0x40 (internal error)
ata1.00: status: { DRDY }
ata1.00: configured for MWDMA2
sd 0:0:0:0: [sda] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
sd 0:0:0:0: [sda] Sense Key : Aborted Command [current] [descriptor]
Descriptor sense data with sense descriptors (in hex):
        72 0b 00 00 00 00 00 0c 00 0a 80 00 00 00 00 00
        00 00 00 00
sd 0:0:0:0: [sda] Add. Sense: No additional sense information
sd 0:0:0:0: [sda] CDB: Read(10): 28 00 00 90 b1 28 00 00 08 00
ata1: EH complete
EXT4-fs error (device dm-0): ext4_find_entry: reading directory #261395 offset 0

On 19 Jun 2014, at 11:21 ,  wrote:

Oops,

RTFM! :)

PS:
  Windows guest requires SRAT table for hotplug to work so add an extra option:
   -numa node
  to QEMU command line.


So status is, windows works. linux does not.

See attachment for more info

Regards,

Gerrit

On 19 Jun 2014, at 11:07 , Kolk, G. van der <g.vander.kolk@vu.nl<mailto:g.vander.kolk@vu.nl>> wrote:

Hi Igor,

I’m trying the memory hot plug. But I have trouble getting it to work. This is what happens. I tried some tested guest OSes and some untested.

I tried three flavours of linux with automatic or manual memory hot plug support:
CentOS 6 cpu hotplug: works memory h<Screen Shot 2014-06-19 at 11.19.58 .png>otplug: Kernel sees memory, but ext4 filesystem crashes, says it’s mounted readonly, but cannot execute anything to try and read the logs.
latest Ubuntu and debian: same problem

Windows 2012: cpu hotplug: works memory hotplug: windows keeps running, but does not see the memory. nothing shows up in event viewer.

Used commands to add memory:
(qemu) object_add memory-ram,id=mem1,size=1G
object_add memory-ram,id=mem1,size=1G
(qemu) device_add dimm,id=dimm1,memdev=mem1
device_add dimm,id=dimm1,memdev=mem1

Am I doing something wrong? How can I make this work? If you need any logs. Let me know which one.

Regards,

Gerrit

On 23 Apr 2014, at 17:40 , Igor Mammedov <imammedo@redhat.com<mailto:imammedo@redhat.com>> wrote:

On Wed, 23 Apr 2014 12:16:30 +0000
"Kolk, G. van der" <g.vander.kolk@vu.nl<mailto:g.vander.kolk@vu.nl>> wrote:

Dear Qemu developers,

I'm doing a masters thesis project which involves Qemu. Especially cpu and memory hot plugging. But I have a hard time  finding the right git repository which contains the latest memory hot plugging work. Can anyone please point me in the right direction?

the last version was posted here:
https://lists.gnu.org/archive/html/qemu-devel/2014-04/msg00734.html


Regards,

Gerrit van der Kolk


--
Regards,
 Igor




[-- Attachment #2: Type: text/html, Size: 28312 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] where can I find the latest memory hot plugging patch for Qemu?
  2014-06-19 10:28       ` Kolk, G. van der
@ 2014-06-19 12:16         ` Igor Mammedov
  2014-06-19 12:27           ` Kolk, G. van der
  0 siblings, 1 reply; 5+ messages in thread
From: Igor Mammedov @ 2014-06-19 12:16 UTC (permalink / raw)
  To: Kolk, G. van der; +Cc: qemu-devel

On Thu, 19 Jun 2014 10:28:41 +0000
"Kolk, G. van der" <g.vander.kolk@vu.nl> wrote:

> This is probably more helpful:
>
> Hotplug Mem Device
> init_memory_mapping: 0000000100000000-0000000140000000
>  0100000000 - 0140000000 page 2M
>  [ffffea0003800000-ffffea00039fffff] PMD -> [ffff88000cc00000-ffff88000cdfffff] on node 0
>  [ffffea0003a00000-ffffea0003bfffff] PMD -> [ffff88000c800000-ffff88000c9fffff] on node 0
>  [ffffea0003c00000-ffffea0003dfffff] PMD -> [ffff88000c600000-ffff88000c7fffff] on node 0
>  [ffffea0003e00000-ffffea0003ffffff] PMD -> [ffff88000c000000-ffff88000c1fffff] on node 0
>  [ffffea0004000000-ffffea00041fffff] PMD -> [ffff88000be00000-ffff88000bffffff] on node 0
>  [ffffea0004200000-ffffea00043fffff] PMD -> [ffff88000ba00000-ffff88000bbfffff] on node 0
> Built 1 zonelists in Node order, mobility grouping on.  Total pages: 96442
> Policy zone: Normal
> nommu_map_sg: overflow 13fc02000+4096 of device mask ffffffff
> ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
> ata1.00: failed command: WRITE DMA
> ata1.00: cmd ca/00:10:f0:b3:53/00:00:00:00:00/e0 tag 0 dma 8192 out
>          res 50/00:00:f0:b3:53/00:00:00:00:00/a0 Emask 0x40 (internal error)
> ata1.00: status: { DRDY }
> ata1.00: configured for MWDMA2
> ata1: EH complete

it's know linux guest issue, see for workaround RHBZ 987871

alternatively you can start guest with 4Gb or more initial memory which also
makes linux kernel work properly or switch disk to virtio driver.

[...]
-- 
Regards,
  Igor

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] where can I find the latest memory hot plugging patch for Qemu?
  2014-06-19 12:16         ` Igor Mammedov
@ 2014-06-19 12:27           ` Kolk, G. van der
  0 siblings, 0 replies; 5+ messages in thread
From: Kolk, G. van der @ 2014-06-19 12:27 UTC (permalink / raw)
  To: Igor Mammedov; +Cc: qemu-devel

Hi Igor,

Thanks for your reply. I guess I have it working right now. I was using an old patch, not the newest one. with v11 it’s working. Didn’t know how git and the branching stuff was working. now it works when booting with just 256MB of memory and extend it to what is necessary with the default(???) disk driver.

Sorry for the inconvenience.

Regards,

Gerrit 

On 19 Jun 2014, at 14:16 , Igor Mammedov <imammedo@redhat.com> wrote:

> On Thu, 19 Jun 2014 10:28:41 +0000
> "Kolk, G. van der" <g.vander.kolk@vu.nl> wrote:
> 
>> This is probably more helpful:
>> 
>> Hotplug Mem Device
>> init_memory_mapping: 0000000100000000-0000000140000000
>> 0100000000 - 0140000000 page 2M
>> [ffffea0003800000-ffffea00039fffff] PMD -> [ffff88000cc00000-ffff88000cdfffff] on node 0
>> [ffffea0003a00000-ffffea0003bfffff] PMD -> [ffff88000c800000-ffff88000c9fffff] on node 0
>> [ffffea0003c00000-ffffea0003dfffff] PMD -> [ffff88000c600000-ffff88000c7fffff] on node 0
>> [ffffea0003e00000-ffffea0003ffffff] PMD -> [ffff88000c000000-ffff88000c1fffff] on node 0
>> [ffffea0004000000-ffffea00041fffff] PMD -> [ffff88000be00000-ffff88000bffffff] on node 0
>> [ffffea0004200000-ffffea00043fffff] PMD -> [ffff88000ba00000-ffff88000bbfffff] on node 0
>> Built 1 zonelists in Node order, mobility grouping on.  Total pages: 96442
>> Policy zone: Normal
>> nommu_map_sg: overflow 13fc02000+4096 of device mask ffffffff
>> ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
>> ata1.00: failed command: WRITE DMA
>> ata1.00: cmd ca/00:10:f0:b3:53/00:00:00:00:00/e0 tag 0 dma 8192 out
>>         res 50/00:00:f0:b3:53/00:00:00:00:00/a0 Emask 0x40 (internal error)
>> ata1.00: status: { DRDY }
>> ata1.00: configured for MWDMA2
>> ata1: EH complete
> 
> it's know linux guest issue, see for workaround RHBZ 987871
> 
> alternatively you can start guest with 4Gb or more initial memory which also
> makes linux kernel work properly or switch disk to virtio driver.
> 
> [...]
> -- 
> Regards,
>  Igor

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-06-19 12:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <BC4C42C3-D860-44AB-BCB0-135B2B322E43@vu.nl>
     [not found] ` <20140423174059.0026cfdf@thinkpad>
2014-06-19  9:07   ` [Qemu-devel] where can I find the latest memory hot plugging patch for Qemu? Kolk, G. van der
2014-06-19  9:21     ` Kolk, G. van der
2014-06-19 10:28       ` Kolk, G. van der
2014-06-19 12:16         ` Igor Mammedov
2014-06-19 12:27           ` Kolk, G. van der

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.