Bug 589897 - Lost the network in a KVM VM on top of 4.9
Lost the network in a KVM VM on top of 4.9
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: kernel (Show other bugs)
4.9
All Linux
urgent Severity medium
: rc
: ---
Assigned To: Herbert Xu
Virtualization Bugs
: ZStream
: 589766 (view as bug list)
Depends On: 524651 554078
Blocks: 528898 589766 597310
  Show dependency treegraph
 
Reported: 2010-05-07 04:53 EDT by Zhang Kexin
Modified: 2013-01-09 17:33 EST (History)
18 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 554078
Environment:
Last Closed: 2011-02-16 10:40:16 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
virtio: net refill on out-of-memory (3.32 KB, patch)
2010-05-14 08:06 EDT, Herbert Xu
no flags Details | Diff


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2011:0263 normal SHIPPED_LIVE Important: Red Hat Enterprise Linux 4.9 kernel security and bug fix update 2011-02-16 10:14:55 EST

  None (edit)
Comment 1 Linda Wang 2010-05-10 12:49:09 EDT
*** Bug 589766 has been marked as a duplicate of this bug. ***
Comment 2 Herbert Xu 2010-05-14 08:06:00 EDT
Created attachment 414033 [details]
virtio: net refill on out-of-memory

This is a back-port of

    virtio: net refill on out-of-memory

    If we run out of memory, use keventd to fill the buffer.  There's a
    report of this happening: "Page allocation failures in guest",
    Message-ID: <20090713115158.0a4892b0@mjolnir.ossman.eu>

    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    Signed-off-by: David S. Miller <davem@davemloft.net>
Comment 4 Zhang Kexin 2010-05-17 02:15:18 EDT
Hi Herbert, 

Could you please supply us with a kernel package?  Thanks!
Comment 5 RHEL Product and Program Management 2010-05-21 12:22:32 EDT
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.
Comment 6 Vivek Goyal 2010-05-27 11:03:00 EDT
Committed in 89.26.EL . RPMS are available at http://people.redhat.com/vgoyal/rhel4/
Comment 7 Keqin Hong 2010-05-28 04:43:06 EDT
Tested with 2.6.9-89.26.ELsmp, using the same method as in https://bugzilla.redhat.com/show_bug.cgi?id=554078#c5. The network didn't lost when OOM of guest occurred.

However, there might be a potential risk of killing other user space processes.
Consider the situation, ./srv was started on tty1, and a vi process was running on tty2. In such a case, the ./srv processes got killed when OOM occurred and tty1 got reset. As a result, I had to re-login tty1. What's worse, the vi process in tty2 got killed (tty2 did require re-login though).

"
Vim: Caught deadly signal TERM
Vim: Preserving files...
Vim: Finished.
Killed
"
Comment 8 Herbert Xu 2010-05-28 06:00:15 EDT
Thanks for testing.  And no, the OOM killer is not exactly a precision weapon.
Comment 14 Qunfang Zhang 2010-12-20 01:24:38 EST
Verified this on kernel-2.6.9-93.ELsmp with the steps in https://bugzilla.redhat.com/show_bug.cgi?id=554078#c5. It passed.
Under the network stress, guest does not lose network, and I can ping guest from any other host.
Comment 15 Qunfang Zhang 2010-12-20 21:18:57 EST
Reproduced on kernel-2.6.9-89.ELsmp, guest loses network with the same steps in https://bugzilla.redhat.com/show_bug.cgi?id=554078#c5.

Verified on kernel-2.6.9-93.ELsmp for both x86_64 and i386 RHEL4.9 guest.
Guests network are still available under high stress.

So, this issue is fixed.
Comment 17 errata-xmlrpc 2011-02-16 10:40:16 EST
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2011-0263.html

Note You need to log in before you can comment on or make changes to this bug.