LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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-11-2014, 02:31 PM   #1
TonyErwood
LQ Newbie
 
Registered: Feb 2010
Location: Shetland Islands. U.K.
Distribution: Slackware
Posts: 9

Rep: Reputation: 0
Old CCISS driver version in Slackware 14.1


I am running Slackware64 14.1 (kernel 3.10.17) on a HP DL385 G2 with a P400 raid controller. The write performance to the sata disks in raid1 is poor.

The cciss driver version in 14.1 is 3.6.26 but on the cciss.sourceforge.net, the recommended driver for kernels 2.6.26 and later is driver version 4.6.28 . This driver was last updated in October 2011 well before Slackware 14.1 was released.

Is there some reason why the driver version 3.6.26 is still being used ? I don't know if the poor write performance on the P400 would be cured by updating the driver.

Any help with this would be much appreciated.
 
Old 08-11-2014, 03:35 PM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Usually Slackware ships unmodified kernels. Maybe try the kernel now shipped in -current and/or the hpsa driver if it can handle your device. I noticed that in -current kernels cciss is configured as a module.
 
Old 08-11-2014, 04:01 PM   #3
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
Please bear in mind that I know nothing whatsoever about this specific driver or device; this is what I can see just from reading the primary sources.

Slackware-14.1 shipped with cciss.ko version 3.6.26 because that is the version of the cciss driver that was in Linus' kernel version 3.10.17, and, looking at the newest kernel version 3.16 (released eight days ago), Linus *still* has cciss version 3.6.26 [see here, line 67]. It is HP's job to send updates to the Linux devs if they want a newer version of their cciss driver in the Linux kernel. They haven't done that in a very, very long time.

*However*, if you read cciss.sourceforge.net, a reason why they have not sent updates to the Linux devs is apparent - they say that "a new Smart Array driver called "hpsa" has been accepted into the main line linux kernel as of Dec 18, 2009, in linux-2.6.33-rc1. This new driver will support new Smart Array products going forward, and the cciss driver will eventually be deprecated."

If you want to see if you can get better performance, it will probably be easier to experiment with hpsa (see the information on the sourceforge page) than to compile the latest out-of-tree cciss module (again, see the information on the sourceforge page). hpsa is actively maintained and up-to-date in the mainstream kernel (and therefore in Slackware-14.1).

Edit: I see Didier said the same thing, but he was shorter, quicker and better!!

Last edited by 55020; 08-11-2014 at 04:29 PM.
 
Old 08-11-2014, 05:24 PM   #4
TonyErwood
LQ Newbie
 
Registered: Feb 2010
Location: Shetland Islands. U.K.
Distribution: Slackware
Posts: 9

Original Poster
Rep: Reputation: 0
Thank you both for your replies.

As far as I understand, the hpsa driver does not support the near legacy P400 controller, so it looks as though I am stuck with the cciss driver. The later P410 controller is supported so one option could be hpsa/P410.

However, I want to first try the later cciss driver, I can copy the relevant files to /usr/src/linux-3.10.17/drivers/block ..... but how do I then rebuild only that driver ?
 
Old 08-11-2014, 05:39 PM   #5
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
See /usr/src/linux-<version>/Documentation/kbuild/modules.txt
 
Old 08-11-2014, 06:04 PM   #6
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
Quote:
Originally Posted by TonyErwood View Post
As far as I understand, the hpsa driver does not support the near legacy P400 controller
Apologies, you are right, pci id 103C 3234 is not listed by the hpsa driver

Quote:
Originally Posted by TonyErwood View Post
I can copy the relevant files to /usr/src/linux-3.10.17/drivers/block
No. Get the source tarball from http://sourceforge.net/projects/ccis...r.bz2/download but ignore what it says under "Source tarballs" (http://cciss.sourceforge.net/#tarballs) as apparently it's been changed since that page was written. Extract the tarball and read the README, you will see these instructions:

Code:
       cp include/cciss_ioctl.h /usr/src/linux-3.10.17/include/linux
       cp include/cciss_defs.h  /usr/src/linux-3.10.17/include/linux
       cd driver/block
       # Uncomment "#define" for the OS being built on in cciss_kernel_compat.h
       make
Note that cciss_kernel_compat.h says "/* Default is kernel.org */" so you don't actually have to "Uncomment "#define" for the OS being built".

Hopefully you won't need to make a new initrd or run lilo, unless you're booting from it.

Note also that you'll have to do this again every time you update your kernel.
 
  


Reply



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 new cciss driver module to initrd.img ,stage2.img kunalroy2002 Linux - Software 4 09-25-2007 12:09 AM
SCSI-3 Persist Reservation using cciss driver merry Linux - Hardware 2 05-22-2007 01:47 PM
ATI Driver Slackware 11.0 - StartX yields Xorg Version mismatch Old_Fogie Slackware 10 10-16-2006 12:12 PM
Sample Driver Module incompatibility with Kernel version (or gcc version) jvs Linux - General 1 06-07-2002 01:40 AM

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

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