LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-04-2021, 03:30 PM   #1
fsociety
LQ Newbie
 
Registered: Mar 2021
Location: United Kingdom
Distribution: Arch Linux
Posts: 6

Rep: Reputation: Disabled
How many VCPUs should I add


I have managed to install arch, and Passthrough my GPU, my kvm runs super well, up until it involves gaming, at that point it stutters, and is quite laggy, and at points unplayable.

How many VCPUs should I Passthrough, and what can I do to improve my gaming experience?

My specs are,
AMD Ryzen 2200G
Nvidia Quadro k5000

I am using virtio drivers, and when I had just windows installed, my games ran perfectly, very well and at a high and constant FPS.

Any help appreciated, thanks!!

Last edited by fsociety; 04-05-2021 at 04:35 AM.
 
Old 04-05-2021, 02:33 AM   #2
fsociety
LQ Newbie
 
Registered: Mar 2021
Location: United Kingdom
Distribution: Arch Linux
Posts: 6

Original Poster
Rep: Reputation: Disabled
Bump
 
Old 04-05-2021, 06:26 AM   #3
Gad
Member
 
Registered: May 2013
Distribution: FreeBSD 12.2-RELEASE
Posts: 566

Rep: Reputation: 114Reputation: 114
I would suggest rather using the Nvidia driver to get the best quality out of your gaming. Unless you are running a virtual machine?
 
Old 04-05-2021, 11:54 AM   #4
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 2,502

Rep: Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024
You did not say anything that helps us understand the actual issue. The question about VCPUs and pass-through to a certain extent implies you are doing the gaming on a VM.

However, we know nothing about the machine, what OS it is running (is it arch?), how much memory it has, what video drivers are in use, or even if the gaming machine is on the base system or in a VM. If the gaming machine is in a VM we need to know how many CPUs and how much memory it already has available. We also need to know which VM environment you are using (KVM/QEMU, Virtual box, Gnome Boxes, or other) and the OS of the VM. We don't even know what game you are having trouble with.

Please at least provide enough detail that someone can actually have an understanding of the situation and we may be able to provide assistance.
 
Old 04-05-2021, 02:25 PM   #5
fsociety
LQ Newbie
 
Registered: Mar 2021
Location: United Kingdom
Distribution: Arch Linux
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by computersavvy View Post
You did not say anything that helps us understand the actual issue. The question about VCPUs and pass-through to a certain extent implies you are doing the gaming on a VM.

However, we know nothing about the machine, what OS it is running (is it arch?), how much memory it has, what video drivers are in use, or even if the gaming machine is on the base system or in a VM. If the gaming machine is in a VM we need to know how many CPUs and how much memory it already has available. We also need to know which VM environment you are using (KVM/QEMU, Virtual box, Gnome Boxes, or other) and the OS of the VM. We don't even know what game you are having trouble with.

Please at least provide enough detail that someone can actually have an understanding of the situation and we may be able to provide assistance.

Sorry about that, I am running Arch Linux and have managed to passthrough my GPU ( Quadro k5000) I have allocated 8GBs of Ram And I am using virtio.

I want to know how I can get the most performance out of my kvm and how many VCPUs I should allocate based on my CPU,

Thanks
 
Old 04-06-2021, 02:45 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 20,339

Rep: Reputation: 3831Reputation: 3831Reputation: 3831Reputation: 3831Reputation: 3831Reputation: 3831Reputation: 3831Reputation: 3831Reputation: 3831Reputation: 3831Reputation: 3831
You still haven't said how many you currently have. And it's pretty pointless asking us anyway.
Add some more, see what happens.
 
Old 04-06-2021, 02:48 AM   #7
fsociety
LQ Newbie
 
Registered: Mar 2021
Location: United Kingdom
Distribution: Arch Linux
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
You still haven't said how many you currently have. And it's pretty pointless asking us anyway.
Add some more, see what happens.
I have allocated 10 VCPUs, but I am asking 2 things, 1 is if I should allocate more or less for better performance based on my CPU

And number 2 is if there is anything I can do to better improve the kvm so that it performs very well when it comes to the gaming side
 
Old 04-06-2021, 03:19 AM   #8
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 18,383

Rep: Reputation: 6233Reputation: 6233Reputation: 6233Reputation: 6233Reputation: 6233Reputation: 6233Reputation: 6233Reputation: 6233Reputation: 6233Reputation: 6233Reputation: 6233
And its is pretty pointless asking us anyway.
1. you can try more or less and see what happens
2. there is no general answer, see post #4, but most probably games run better on real hardware.
 
1 members found this post helpful.
Old 04-06-2021, 04:16 AM   #9
Gad
Member
 
Registered: May 2013
Distribution: FreeBSD 12.2-RELEASE
Posts: 566

Rep: Reputation: 114Reputation: 114
I have never tried gaming on virtual and to be honest probably would not try. Unfortunately I don't have much experience in that specific area to be able to provide any suggestions.I would suggest rather dual booting to get the best performance out of your hardware for gaming purposes.

Another factor to consider is the type of games you are wanting / are currently playing and if virtual would be the best option.

Last edited by Gad; 04-06-2021 at 04:17 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Add vCPUs to Linux 2.4 guest to speed it up in vSphere 4? kenw232 Linux - Virtualization and Cloud 1 09-25-2013 06:59 PM
How many VCPUs? pinga123 Linux - Virtualization and Cloud 6 11-11-2010 06:22 PM
xen vcpus-cpus problem with XP under xen fachamix Linux - Virtualization and Cloud 2 06-08-2010 06:01 AM
Xen: how to add VCPUs to windows guest fft9qh Linux - Enterprise 2 01-09-2009 09:31 AM
LXer: Running 64-bit Solaris 10U6 HVM DomU (2 vcpus) at Xen 3.3.1-RC3 CentOS 5.2 Dom0 LXer Syndicated Linux News 0 12-20-2008 05:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration