2006-03-24 08:24:47

by moreau francis

[permalink] [raw]
Subject: How to test vanilla kernel

I'm wondering how you folks, install and run the latest vanilla kernel. I guess
that people install their prefered distrib as a start point and then download
the kernel sources. But each distrib patch and update the kernel, is it safe to
forget them ?

BTW, is there a 'best' distrib to achieve that ?

Francis






___________________________________________________________________________
Nouveau : t?l?phonez moins cher avec Yahoo! Messenger ! D?couvez les tarifs exceptionnels pour appeler la France et l'international.
T?l?chargez sur http://fr.messenger.yahoo.com


2006-03-24 09:00:53

by Jesper Juhl

[permalink] [raw]
Subject: Re: How to test vanilla kernel

On 3/24/06, moreau francis <[email protected]> wrote:
> I'm wondering how you folks, install and run the latest vanilla kernel.

There are many ways to test a kernel.

The most basic test would be to grab the kernel sources, build a new
kernel, install it, boot it & see if it blows up.

If you want to get a bit more advanced the kernel sources include a
few modules to stress test different parts of the infrastructure. You
can run those.

You can build your kernels with different (sometimes unusual)
configuration options to test if some combination of options produce
bad results.

You can also write a few apps that test the various syscalls. Use
fuzzers to pass in random values to syscalls and check for errors.
Write scripts/apps to create/delete lots of random files, dirs etc to
test filesystems.
Run benchmark apps on different kernel versions to test for
performance regressions.

In short, use your imagination and try to crash the kernel in various ways.
If you happen to provoke a crash, bug, other unwanted behaviour;
gather all the info, and send in a bug report - see
Documentation/ReportingBugs.


> I guess
> that people install their prefered distrib as a start point

Ofcourse, you need a working install before you start replacing your kernel.

> and then download
> the kernel sources.

Yup.

>But each distrib patch and update the kernel,

Many do, but not all of them, some ship vanilla kernels, like my
personal favorite, Slackware.

> is it safe to
> forget them ?
>
Unless you have something setup on your box which depends on
functionality patched into the kernel by your vendor, then yes,
running a vanilla kernel is perfectly OK - if it was not we'd never
get it tested ;-)


> BTW, is there a 'best' distrib to achieve that ?
>
No.
Use whatever distro you happen to prefer.


--
Jesper Juhl <[email protected]>
Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please http://www.expita.com/nomime.html

2006-03-24 09:35:12

by moreau francis

[permalink] [raw]
Subject: Re: How to test vanilla kernel

Hi Jesper,

--- Jesper Juhl <[email protected]> a ?crit :
> > is it safe to
> > forget them ?
> >
> Unless you have something setup on your box which depends on
> functionality patched into the kernel by your vendor, then yes,

but how will I know that some shipped patchs are necessary ?

> running a vanilla kernel is perfectly OK - if it was not we'd never
> get it tested ;-)
>

well, last time I tried to replace fedora core 3 kernel with a vanilla 2.6.15
kernel I have some troubles with my USB controller, I got some unhandled IRQ.
And some devices like UART have their minor numbers changed. So I'm wondering
when upgrading the kernel, some configurations must be done ?


Francis





___________________________________________________________________________
Nouveau : t?l?phonez moins cher avec Yahoo! Messenger. Appelez le monde entier ? partir de 0,012 ?/minute !
T?l?chargez sur http://fr.messenger.yahoo.com