Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 1983225 Details for
Bug 2222603
[upstream][kvm] Patch "vhost: use vhost_tasks for worker threads" introduces 30% performance degradation
Home
New
Search
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh89 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Don't inherit parent's sched settings
reset-sched.patch (text/plain), 773 bytes, created by
Mike Christie
on 2023-08-14 01:08:39 UTC
(
hide
)
Description:
Don't inherit parent's sched settings
Filename:
MIME Type:
Creator:
Mike Christie
Created:
2023-08-14 01:08:39 UTC
Size:
773 bytes
patch
obsolete
>diff --git a/kernel/vhost_task.c b/kernel/vhost_task.c >index da35e5b7f047..f2c2638d1106 100644 >--- a/kernel/vhost_task.c >+++ b/kernel/vhost_task.c >@@ -2,6 +2,7 @@ > /* > * Copyright (C) 2021 Oracle Corporation > */ >+#include <uapi/linux/sched/types.h> > #include <linux/slab.h> > #include <linux/completion.h> > #include <linux/sched/task.h> >@@ -22,9 +23,16 @@ struct vhost_task { > > static int vhost_task_fn(void *data) > { >+ static const struct sched_param param = { .sched_priority = 0 }; > struct vhost_task *vtsk = data; > bool dead = false; > >+ /* >+ * Don't inherit the parent's sched info, so we maintain compat from >+ * when we used kthreads and it reset this info. >+ */ >+ sched_setscheduler_nocheck(current, SCHED_NORMAL, ¶m); >+ > for (;;) { > bool did_work; >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 2222603
:
1976628
|
1977344
|
1977437
|
1977447
|
1980223
| 1983225