Difference between revisions of "Compiling KTCPVS"

From LVSKB
Jump to: navigation, search
(Linux Kernel 2.6)
(Linux Kernel 2.6)
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
== Introduction ==
 +
 +
Since KTCPVS is implemented as a Linux kernel module, compilation will require the kernel header files matching the kernel version you wish to use the ktcpvs module with.
 +
 
== Linux Kernel 2.4 ==
 
== Linux Kernel 2.4 ==
  
Line 5: Line 9:
 
== Linux Kernel 2.6 ==
 
== Linux Kernel 2.6 ==
  
 +
I had made a port of KTCPVS for kernel 2.6, and tested it under CentOS 4.x, support for newer kernel will be added later.
 +
Before you get started,  please make sure that the kernel-devel package is installed
  
 +
Then check out the source code for 2.6 from the subversion:
  
[[Category:KTCPVS]]
+
* for RHEL4 or CentOS4:
 +
  <blockquote>
 +
    svn co http://svn.linuxvirtualserver.org/repos/ktcpvs/branches/stable_for_2.6.9/ ktcpvs
 +
  </blockquote>
  
I have tested it under CentOS 4.x, support for newer kernel will be added later.  
+
* for RHEL5 or CentOS5:
 +
 
 +
  <blockquote>
 +
    svn co http://svn.linuxvirtualserver.org/repos/ktcpvs/branches/for_2.6.18/ ktcpvs
 +
  </blockquote>
 +
 
 +
Compile & install ktcpvs:
  
first of all check out the source code for 2.6 from the subversion
 
 
<blockquote>
 
<blockquote>
svn co http://svn.linuxvirtualserver.org/repos/ktcpvs/branches/stable_for_2.6.9/ ktcpvs
+
cd ktcpvs && make install
 
</blockquote>
 
</blockquote>
 +
 +
And now, you can use the start script under the ktcpvs directory to start the kernel thread ;)
 +
 +
<blockquote>
 +
./start
 +
</blockquote>
 +
 +
You can change the config file as your need, then use "tcpvsadm -f config" to load it, for more details, please refer the manual of tcpvsadm.
 +
 +
 +
[[Category:KTCPVS]]

Latest revision as of 14:51, 20 March 2008

Introduction

Since KTCPVS is implemented as a Linux kernel module, compilation will require the kernel header files matching the kernel version you wish to use the ktcpvs module with.

Linux Kernel 2.4

Linux Kernel 2.6

I had made a port of KTCPVS for kernel 2.6, and tested it under CentOS 4.x, support for newer kernel will be added later. Before you get started, please make sure that the kernel-devel package is installed

Then check out the source code for 2.6 from the subversion:

  • for RHEL4 or CentOS4:

svn co http://svn.linuxvirtualserver.org/repos/ktcpvs/branches/stable_for_2.6.9/ ktcpvs

  • for RHEL5 or CentOS5:

svn co http://svn.linuxvirtualserver.org/repos/ktcpvs/branches/for_2.6.18/ ktcpvs

Compile & install ktcpvs:

cd ktcpvs && make install

And now, you can use the start script under the ktcpvs directory to start the kernel thread ;)

./start

You can change the config file as your need, then use "tcpvsadm -f config" to load it, for more details, please refer the manual of tcpvsadm.