LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-12-2013, 04:53 PM   #1
zerouno
Member
 
Registered: Oct 2009
Location: Italy
Distribution: Slackware
Posts: 983

Rep: Reputation: 352Reputation: 352Reputation: 352Reputation: 352
[REQUEST] paravirtualization in next kernel 3.10.x rebuild, please


I'm a vmware user.

After any kernel upgrade I must rebuild the vmware kernel modules to user vmware.

But with 3.10.5 is needed to recompile the kernel adding at least
CONFIG_PARAVIRT_SPINLOCKS=y
(and related)

It's possible to add this feature in next kernel rebuilds?

I dont know how many config options should to be added in .config, but with an only small test, the following configurarion works. (x86_64)
Code:
# diff -u /boot/config-generic-3.10.5 .config
--- /boot/config-generic-3.10.5 2013-08-04 22:33:23.000000000 +0200
+++ .config     2013-08-12 22:46:32.352253231 +0200
@@ -332,7 +332,15 @@
 CONFIG_X86_INTEL_LPSS=y
 CONFIG_X86_SUPPORTS_MEMORY_FAILURE=y
 CONFIG_SCHED_OMIT_FRAME_POINTER=y
-# CONFIG_HYPERVISOR_GUEST is not set
+CONFIG_HYPERVISOR_GUEST=y
+CONFIG_PARAVIRT=y
+# CONFIG_PARAVIRT_DEBUG is not set
+CONFIG_PARAVIRT_SPINLOCKS=y
+# CONFIG_XEN is not set
+# CONFIG_XEN_PRIVILEGED_GUEST is not set
+CONFIG_KVM_GUEST=y
+# CONFIG_PARAVIRT_TIME_ACCOUNTING is not set
+CONFIG_PARAVIRT_CLOCK=y
 CONFIG_NO_BOOTMEM=y
 CONFIG_MEMTEST=y
 # CONFIG_MK8 is not set
@@ -1636,6 +1644,7 @@
 CONFIG_SENSORS_APDS990X=m
 CONFIG_HMC6352=m
 CONFIG_DS1682=m
+# CONFIG_VMWARE_BALLOON is not set
 CONFIG_BMP085=y
 CONFIG_BMP085_I2C=m
 CONFIG_PCH_PHUB=m
@@ -5107,6 +5116,7 @@
 #
 # Microsoft Hyper-V guest support
 #
+# CONFIG_HYPERV is not set
 CONFIG_STAGING=y
 # CONFIG_ET131X is not set
 # CONFIG_SLICOSS is not set
CONFIG_PARAVIRT_SPINLOCKS=y
is needed to solve this problem:
vmci: Unknown symbol pv_lock_ops (err 0)

pv_lock_ops is defined in ./arch/x86/kernel/paravirt-spinlocks.c
 
Old 08-12-2013, 05:07 PM   #2
guanx
Senior Member
 
Registered: Dec 2008
Posts: 1,172

Rep: Reputation: 227Reputation: 227Reputation: 227
“Unfortunately the downside is an up to 5% performance hit on native kernels, with various workloads.”
 
1 members found this post helpful.
Old 08-12-2013, 05:25 PM   #3
zerouno
Member
 
Registered: Oct 2009
Location: Italy
Distribution: Slackware
Posts: 983

Original Poster
Rep: Reputation: 352Reputation: 352Reputation: 352Reputation: 352
even when the feature is not used?

isn't possible to build it as module?
 
Old 08-13-2013, 06:22 AM   #4
hf2046
Member
 
Registered: Mar 2011
Distribution: Slack64
Posts: 111

Rep: Reputation: 20
Quote:
Originally Posted by zerouno View Post
even when the feature is not used?
That's what the kernel help documentation says.

Quote:
Originally Posted by zerouno View Post
isn't possible to build it as module?
Nope.
 
Old 08-13-2013, 06:25 AM   #5
zerouno
Member
 
Registered: Oct 2009
Location: Italy
Distribution: Slackware
Posts: 983

Original Poster
Rep: Reputation: 352Reputation: 352Reputation: 352Reputation: 352
ok
thanx
 
Old 08-14-2013, 12:40 AM   #6
rouvas
Member
 
Registered: Aug 2006
Location: Greece
Distribution: Slackware.12.2
Posts: 104
Blog Entries: 3

Rep: Reputation: 21
Perhaps a choice could be offered at installation time.
It should be noted, that running virtualized loads is an increasingly popular method of server utilization.
I think a method for efficiently accomodating virtualized loads should be offered.
Another alternative, could be a clear README-style document that would explain the required steps. Something along the lines of "booting with LVM" document.
 
Old 08-14-2013, 08:25 AM   #7
solarfields
Senior Member
 
Registered: Feb 2006
Location: slackalaxy.com
Distribution: Slackware, CRUX
Posts: 1,449

Rep: Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997
or may be a yet another kernel choice in addition to huge and generic or a ready config file in /extra?
 
1 members found this post helpful.
Old 10-16-2013, 06:24 AM   #8
zerouno
Member
 
Registered: Oct 2009
Location: Italy
Distribution: Slackware
Posts: 983

Original Poster
Rep: Reputation: 352Reputation: 352Reputation: 352Reputation: 352
[SOLVED] [REQUEST] paravirtualization in next kernel 3.10.x rebuild, please

today changelog

Quote:
The kernels were rebuilt to fix a regression that
occurred when the 3.10.0 kernel changed CONFIG_PARAVIRT_GUEST to
CONFIG_HYPERVISOR_GUEST, which caused some previously included VMWare and
Hyper-V drivers to not be built. These are the changed kernel options:
HYPERVISOR_GUEST n -> y
+FB_HYPERV n
+HID_HYPERV_MOUSE m
+HYPERV m
+HYPERV_BALLOON m
+HYPERV_NET m
+HYPERV_STORAGE m
+HYPERV_UTILS m
+PARAVIRT n
+VMWARE_BALLOON m
+XEN_PRIVILEGED_GUEST n
 
Old 10-16-2013, 08:04 AM   #9
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,465

Rep: Reputation: 8373Reputation: 8373Reputation: 8373Reputation: 8373Reputation: 8373Reputation: 8373Reputation: 8373Reputation: 8373Reputation: 8373Reputation: 8373Reputation: 8373
These are device drivers that we had before. Note that CONFIG_PARAVIRT is not set.
 
Old 10-16-2013, 08:21 AM   #10
zerouno
Member
 
Registered: Oct 2009
Location: Italy
Distribution: Slackware
Posts: 983

Original Poster
Rep: Reputation: 352Reputation: 352Reputation: 352Reputation: 352
The important think is that now I can build succesfully vmware modules. I need it only for that (so I don't need to rebuild the kernel at every upgrade).

Thankyou.
 
Old 10-16-2013, 10:27 AM   #11
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,851
Blog Entries: 14

Rep: Reputation: 284Reputation: 284Reputation: 284
Hmm, looks like I'll have to do a kernel recompile to install Xen as dom0. Is there a performance penalty for making
+XEN_PRIVILEGED_GUEST y
as well as the other Xen kernel options? I'm guessing the answer is yes or they would be enabled..
 
Old 11-26-2013, 09:21 AM   #12
eRJe
Member
 
Registered: May 2005
Location: Netherlands
Distribution: Slackware 14.1 Kernel 3.12.1
Posts: 103

Rep: Reputation: 16
I'm installing Slackware 14.1 on a VMware ESXi 5.5 host. First time installation I created a "other Linux 64bit" VM and kept all the default settings. This worked out fine. Now I'm trying to use different SCSI settings by choosing paravirtualization. I read this will improve performance and cost less CPU. But now the drive that I want to install the fresh Slackware on, won't show up in /dev. I assume this is because of choosing paravirtualization and the option not being enabled in the huge kernel?

Are there other options I should consider enabling to improve performance?

Thanks,
Robbert
 
  


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
[SOLVED] rebuild kernel trinityforce Solaris / OpenSolaris 3 10-12-2011 06:13 PM
xen paravirtualization and kernel numbers computeringman Linux - Virtualization and Cloud 2 11-02-2010 10:19 PM
Kernel rebuild? Whynot Linux - Kernel 2 03-02-2007 07:19 AM
How do you rebuild a kernel? Thaidog Linux - General 4 07-26-2005 12:15 PM
Rebuild kernel And then !!! left-hand Linux - Software 4 02-06-2004 09:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:21 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