Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Jemalloc 5.4.0(github.com/jemalloc ↗)
    27comments
  2. The scourge of x86 emulation(fex-emu.com ↗)
    13comments
  3. Astra for Law(openai.com ↗)
    506comments
  4. Bonsai 2 27B: Near-Lossless Compression in a 9x Smaller Footprint(prismml.com ↗)
    124comments
  5. Bend – A language that blocks AI mistakes via proof, on CPU and GPU(bend-lang.com ↗)
    208comments
  6. When the fractional part of a float fixes your shader(crocidb.com ↗)
    discuss
  7. Qwen 3.8 Omni Flash(qwen.ai ↗)
    71comments
  8. Hister: A private search engine for the pages you visit and the files you keep(github.com/asciimoo ↗)
    162comments
  9. Pre-Greek: The lost language hidden within Ancient Greek(linguisticdiscovery.com ↗)
    29comments
  10. Wax motor(wikipedia.org ↗)
    65comments
  11. A heap overflow and SSO misconfiguration to compromise OpenAI internal repos(hacktron.ai ↗)
    133comments
  12. Fujitsu launches made-in-Japan next-generation CPU FUJITSU-MONAKA(global.fujitsu ↗)
    227comments
  13. Shapelearn Qwen 3.8 27B (13.1 GB VRAM)(byteshape.com ↗)
    7comments
  14. How to Write with an LLM(sockpuppet.org ↗)
    85comments
  15. Ask A Monk – A digital wilderness for thoughts with no immediate answer(askamonk.online ↗)
    20comments
  16. Why Does the Universe Expand?(cosmicave.org ↗)
    49comments
  17. Flet 1.0 – Build cross-platform apps in Python(flet.dev ↗)
    52comments
  18. Telstra outage: The night a network decided the year was 2006(netnod.se ↗)
    23comments
  19. Speeding up gearhash on ARM64(sam.dev ↗)
    discuss
  20. Diplodocus, Long Thought Exclusively American, Turns Up in Spain(sci.news ↗)
    37comments
  21. The most important product decision is what you don't build(liamnugent.me ↗)
    35comments
  22. Fixing an NZXT Signal 4K30 part 2: the green/pink video bug(downtowndougbrown.com ↗)
    9comments
  23. CrowdSec Source Code Leak(crowdsec.net ↗)
    45comments
  24. Why I didn’t sign the Fields medallists’ letter(gowers.wordpress.com ↗)
    361comments
  25. Khipu (Quipu) Field Guide(khipufieldguide.com ↗)
    discuss
  26. Apple detectives solved mystery of ancient tree and rewrote the history of fruit(scientificamerican.com ↗)
    5comments
  27. How do we prevent mathemathics from devolving into the Medieval Era of secrecy?(mathoverflow.net ↗)
    103comments
  28. Show HN: Snapdrop: Instantly share files between devices. No setup, no signup(snapdrop.me ↗)
    34comments
  29. How Uber Protects Against Retry Storms(uber.com ↗)
    38comments
  30. Infinite-Parameter LLMs: Generating and Adapting Weights from Live Data(arxiv.org ↗)
    39comments

QEMU 1.7.0 is now available

57 pointsby 12y agolists.gnu.org
16 comments
12y agoHN ↗

I'd like to hear stories about people using QEMU in production. Do people think it is a viable option for automated ARM Android testing?

12y agoHN ↗

Er, what? QEMU is used very frequently with KVM. There are many companies providing KVM instances, so QEMU is pretty widely used in production. Did you have a more specific question?

12y agoHN ↗

Xen also uses QEMU, in pretty much the same manner as KVM.

12y agoHN ↗

That's not entirely true. Xen uses QEMU only to execute I/O. It gets I/O requests on a ring buffer and services them. CPUs are handled by the hypervisor.

With KVM, QEMU actually runs the code for the virtual machine; it just does that inside the KVM kernel module.

This means, for example, that only with KVM you can profile each VCPU simply using "perf". Also, features that require code to run in the CPU threads (for example slowing down CPUs so that migration can converge better) will not work with Xen.

12y agoHN ↗

I've worked on 2 large telecoms projects where automated full-system testing occurred using ARM emulators. Also, the stock Android emulator is Qemu (or at least was, last time I checked), and many people do automated testing using that.

12y agoHN ↗

I'm pretty sure digital ocean uses it in production

12y agoHN ↗

I believe the Android emulator is now quite different from mainline QEMU. No efforts have been made to merge patches back into QEMU, so the Android emulator is basically a fork of QEMU.

That said, ARM development in QEMU is very active right now and its only a matter of time before one of the supported QEMU ARM targets also happens to be a platform with good Android support.

TL;DR consider sticking to the official Android emulator for now but keep an eye on QEMU.

12y agoHN ↗

Can someone explain in technical-but-not-necessarily-domain-expert terms what the relationship between QEMU and KVM is? Is one a dependency of the other, or could they each work independent of the other?

12y agoHN ↗

KVM (Kernel Virtual Machine) is a Linux kernel module that allows a user space program to utilize the hardware virtualization features of various processors.

QEMU is a machine emulator.

QEMU can make use of KVM when running a target architecture that is the same as the host architecture (which gives significant performance advantages).

KVM is not strictly dependent on QEMU but they are usually used together. If you don't need the kernel level hw support (i.e. emulating a different architecture to the host platform) then QEMU can be used independently.

12y agoHN ↗

Certainly, you can use QEMU without KVM. It's just slower that way. I'm not sure about the other way around.

12y agoHN ↗

Let me know when we can compile QEMU with a modest amount of RAM. Last time I tried, on a memory constrained laptop, it took over 1GB of RAM! That's a lot of memory just to compile a single program. By comparison, I can compile a kernel loaded down with heaps of unneeded drivers with less than 200MB of RAM. I suspect this situation will only get worse with future QEMU releases.

12y agoHN ↗

Although I agree with you, requirement of 1 GB RAM is not much in these days, so probably it will never be optimized.

12y agoHN ↗

Try again with QEMU 1.7 and recent gcc. There has been a known gcc issue triggered by one of the QEMU source files that requires a lot of memory. A workaround went into QEMU a while back using the gcc -fno-gcse flag for that particular source file.

12y agoHN ↗

Does anyone know if QEMU can do virtualization on hosts other than Linux (via KVM)? I'd love to ditch Virtualbox for it.

12y agoHN ↗

I've used Qemu on Windows and OpenBSD. I don't think either supports KVM acceleration though.