memory errors

By: anon2 (, March 5, 2021 7:55 am
Room: Moderated Discussions
Carson ( on March 5, 2021 2:43 am wrote:
> anon2 ( on March 4, 2021 9:46 pm wrote:
> > You still don't use virtual machines for testing?
> Most of Linux is device drivers. Virtual machines have virtualized hardware
> that doesn't work the same as (and is usually simpler than) real hardware.

By far the majority of code of any given system (like Linus' laptop or his big slow booting systems) runs code that is _other_ than device drivers. And devices can be and are emulated quite well (not exactly the same but to some degree), and also device drivers include virtualized device drivers of the type that only can be tested by running guests.

A really big device driver is a GPU, noveau say, at 200k LOC (including all supported GPUs). But no other drivers you would run would get close to that. The basic NVMe host block driver is 10K lines. mm/ is ~150K, fs/xfs/ is ~150K, kernel/ is ~400K, fs/*.c is 100K, block/ is 60K, net/ipv4 is 100K.

> There are many parts of Linux which can be tested in a VM (filesystems and core network code
> come to mind),

Device drivers are actually getting easier and more regular in general, and less need to test them and/or more availability of decent emulated implementations, pass through / virtualized device capability, etc.. The exceptions are a few things like wifi and consumer GPU drivers. Notice I never asked whether Linus still doesn't use *only* virtual machines for testing. Of course you need to test on bare metal sometimes.

> but "kernel development" in general includes parts which need higher fidelity.

Not true. A VM is a target just like anything else, and has its own quirks and issues and needs testing just as a bare metal system does. Also you could certainly develop an entire kernel from scratch using nothing but qemu and have it boot on real hardware and run real devices (just maybe not your average laptop with all devices).

For turning around images that boot very quickly on that large system, testing scalability and performance and filesystems and swap files and virtio drivers etc etc, VMs would be a great kernel development tool.
< Previous Post in ThreadNext Post in Thread >
TopicPosted ByDate
CPU & Memory bit flipsGanon2021/03/03 09:05 AM
  Also "Silent Data Corruption"Adrian2021/03/03 10:42 AM
    Thanks for the referenceGanon2021/03/03 11:47 AM
  Implications for linux page cacheanon2021/03/03 11:54 AM
    Implications for linux page cacheLinus Torvalds2021/03/03 01:54 PM
      memory errorsblaine2021/03/03 02:53 PM
        memory errorsanon22021/03/03 05:30 PM
          memory errorsdmcq2021/03/04 05:16 AM
            memory errorsEtienne Lorrain2021/03/04 06:26 AM
              memory errorsdmcq2021/03/04 06:40 AM
                memory errorsEtienne Lorrain2021/03/04 06:58 AM
                  memory errorsdmcq2021/03/04 07:12 AM
                  memory errorsCarson2021/03/05 02:31 AM
                    memory errorsEtienne Lorrain2021/03/05 06:23 AM
                      memory errorsrwessel2021/03/05 07:48 AM
                      memory errorsdmcq2021/03/05 12:01 PM
                        memory errorsrwessel2021/03/05 12:23 PM
                          memory errorsdmcq2021/03/05 12:51 PM
                      memory errorsBrendan2021/03/05 11:38 PM
                      memory errorsCarson2021/03/06 01:35 AM
                        memory errorsCarson2021/03/06 06:24 AM
                memory errorsDavid Hess2021/03/04 01:44 PM
                  memory errorsrwessel2021/03/04 05:14 PM
                  memory errorsLinus Torvalds2021/03/04 08:21 PM
                    memory errorsanon22021/03/04 09:46 PM
                      memory errorsCarson2021/03/05 02:43 AM
                        memory errorsanon22021/03/05 07:55 AM
                    memory errorsgallier22021/03/05 02:22 AM
                  memory errorsdmcq2021/03/05 12:59 PM
                    memory errorsDavid Hess2021/03/06 04:27 AM
                      memory errorsCarson2021/03/06 06:44 AM
                      memory errorsGabriele Svelto2021/03/06 10:11 AM
                        memory errorsDavid Hess2021/03/06 10:28 AM
                          memory errorsMichael S2021/03/06 02:45 PM
              memory errorsDoug S2021/03/04 10:48 AM
                memory errorsMichael S2021/03/04 11:36 AM
              memory errorsJörn Engel2021/03/04 03:32 PM
                memory errorsLinus Torvalds2021/03/04 08:47 PM
                  memory errorsEtienne Lorrain2021/03/05 01:09 AM
                  memory errorsMichael S2021/03/05 04:06 AM
                    memory errorsLinus Torvalds2021/03/05 11:59 AM
                      memory errorsrwessel2021/03/05 12:32 PM
                        memory errorsrwessel2021/03/05 12:37 PM
                        memory errorszArchJon2021/03/06 08:39 PM
                      memory errorsGabriele Svelto2021/03/06 12:58 PM
                  memory errorsJörn Engel2021/03/05 10:12 AM
                Amiga recoverable RAM disk?Carson2021/03/05 03:03 AM
                  Thanks - TIL a cool Amiga feature (nt) (NT)John2021/03/05 12:51 PM
                    Another cool Amiga feature, datatypesCharles2021/03/06 12:01 AM
                      Another cool Amiga feature, datatypesJukka Larja2021/03/06 01:23 AM
                      Another cool Amiga feature, datatypesAnon2021/03/06 12:40 PM
                      Another cool Amiga feature, filesystemsMarcus2021/03/07 12:28 AM
  CPU & Memory bit flipszArchJon2021/03/04 06:39 AM
    CPU & Memory bit flipsdmcq2021/03/04 06:59 AM
      CPU & Memory bit flipsrwessel2021/03/04 12:27 PM
  speak of the devilRobert Williams2021/03/05 07:53 AM
    speak of the devildmcq2021/03/05 11:26 AM
      speak of the devilRobert Williams2021/03/05 03:15 PM
Reply to this Topic
Body: No Text
How do you spell avocado?