WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Original Kernel compilation with performances degraded[NO PROCESS TO PROVE IT]  (Read 17445 times)

Offline Daniel

  • Full Member
  • ***
  • Posts: 166
Hi evevy body,

I have to modify tce kernel (change splash image, add video card ... suppress unused drivers ... ).

Before doing anything, i want to generate mods + kernel in order to verify i do that correctly (it is my first time doing this ... but not the last).

The compilation is ok (with downloaded sources from the 2.6.33.3 kernel).

I've found bzImage ... but i don't know where to find mods ... or what i have to do with files generated!
(not found any specific documentation)

More : when i use the generated kernel, supposed identical, it doesn't work (reboot).

The compilation is done under Ubuntu 10.04 ...(i will try under tcl) ...

Thanks
Daniel.
« Last Edit: March 30, 2011, 09:39:57 AM by Daniel »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14546
Re: Kernel compilation + usage with mods
« Reply #1 on: February 22, 2011, 01:47:04 AM »
I'd suggest you compile using tinycore and using the patched kernel source and tinycore .config - note that you will need the bash and perl5 extensions as well as compiletc.

I'm not sure if you'd like to suppress unused modules compiled into the kernel (in which case they are compiled into bzImage) or suppress loadable modules (in which case you just need to delete them)?

You can search on *ko to find the loadable modules in the source tree or "make modules install" will install them to the default path (/usr/lib I guess), but you can pass a switch to install them to the tinycore default path - see kernel readme files)

Offline Daniel

  • Full Member
  • ***
  • Posts: 166
Re: Kernel compilation + usage with mods
« Reply #2 on: February 23, 2011, 01:26:57 AM »
I compile now under TCL :)
with X-7.5 ... machine configuration ok!


On my new install, i almost put
- compiletc.tcz
- ncurses-dev.tcz
- perl5.tcz

the compilation ends ok :)

I've found the bzImage in /usr/srv/linux/arch/x86/boot/

but i don't know where is the tinycore.gz, or how to generate it!

Daniel.

PS
my bzImage gererated replacing the tcl bzImage is ok!!! :D
I can now make little modifications ... (TCL splash image ...)

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14546
Re: Kernel compilation + usage with mods
« Reply #3 on: February 23, 2011, 01:36:19 AM »
but i don't know where is the tinycore.gz, or how to generate it!

tinycore.gz is not generated by compiling the kernel source (although it does contain modules generated by compiling the kernel).

If you'd like to edit tinycore.gz, you can have a look at the re-mastering section of the wiki

Offline Daniel

  • Full Member
  • ***
  • Posts: 166
Re: Kernel compilation + usage with mods
« Reply #4 on: February 23, 2011, 08:24:57 AM »
I will see if i need that!

Thank you.

And for that : http://www.gentoo-wiki.info/HOWTO_Linux_Logo_Hack

It's running!

With a 1280x1024 logo splash image :)

(I have only a little cursor up left corner)

Daniel.

Offline Daniel

  • Full Member
  • ***
  • Posts: 166
Re: Kernel compilation + usage with mods
« Reply #5 on: February 23, 2011, 09:54:19 AM »
I have a testing application.

With my compiled kernel (with splash image ... but i don't think it is the cause), my test give me 3 seconds.
With the original kernel, it was 2.5s.

The only test differences is kernel!

I loose 18 % of performances :(

where is it comming from ?
What can i do ?

Thanks,
Daniel.


Offline Daniel

  • Full Member
  • ***
  • Posts: 166
Re: Original Kernel compilation with performances degraded
« Reply #6 on: February 25, 2011, 05:30:37 AM »
Can somebody tell me why performances are better with the original TCL kernel than with the given sources compiled with the given parameters ?
On TCL
With TCL packages

Thanks,
Daniel.

PS: the tcl choice was done with original tcl kernel performances.
But i can't have the sames after compilation  :-\

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10962
Re: Original Kernel compilation with performances degraded
« Reply #7 on: February 25, 2011, 05:53:46 AM »
That highly depends on what your app is doing, what config options you changed etc.
The only barriers that can stop you are the ones you create yourself.

Offline Daniel

  • Full Member
  • ***
  • Posts: 166
Re: Original Kernel compilation with performances degraded
« Reply #8 on: February 25, 2011, 06:23:53 AM »
First, i wanted to test the compilation ... with no change (same application).

When i succeed, i control performances :  :(

I'm doing again the same test : a new build all with the original .config
[Edit] : same bad perf. result.( Original size : 2294848 bytes. My size : 2296000 byte )

Thanks,

Daniel.

ps:
The first modification wanted is changing splash image ... I don't think it can modify anything ...


« Last Edit: February 25, 2011, 08:58:42 AM by Daniel »

Offline Daniel

  • Full Member
  • ***
  • Posts: 166
Re: Original Kernel compilation with performances degraded
« Reply #9 on: March 02, 2011, 06:06:24 AM »
Does anybody do the same test ?

Please, tell me if it is my configuration, or if it is "normal" with the given sources and parameters ?

Thanks,
Daniel.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Original Kernel compilation with performances degraded
« Reply #10 on: March 02, 2011, 07:35:06 AM »
How can anyone comment when you have not provided any performance figures.

Offline Daniel

  • Full Member
  • ***
  • Posts: 166
Re: Original Kernel compilation with performances degraded
« Reply #11 on: March 02, 2011, 07:41:57 AM »
The test is very simple!

Install TCL!
Install all tools and source for TCL configuration and compilation.


Install a bench program (for example : a flash fp_meter)
Do test.

After compilation : replace kernel on your machine.

Do Test again and compare results.

My application is a flash caroussel with time displayed after one rotation, thats why i propose flash pf meter.

Thanks
Daniel.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Original Kernel compilation with performances degraded
« Reply #12 on: March 02, 2011, 07:55:25 AM »
The test is very simple!

Install TCL!
Install all tools and source for TCL configuration and compilation.


Install a bench program (for example : a flash fp_meter)
Do test.

After compilation : replace kernel on your machine.

Do Test again and compare results.

My application is a flash caroussel with time displayed after one rotation, thats why i propose flash pf meter.

Thanks
Daniel.

Quote
Install all tools...

Install a bench program (for example... )

Nice, exact definition.  And a flash pf meter (?)

In such case I would say the reason is a local distorsion of the gravitation which is inflencing the q-factor of the 49-th dimension (possibly 50th, must be checked)

 ;D
« Last Edit: March 02, 2011, 07:57:47 AM by bmarkus »
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline Daniel

  • Full Member
  • ***
  • Posts: 166
Re: Original Kernel compilation with performances degraded
« Reply #13 on: March 02, 2011, 08:21:24 AM »
I can't join my FpsMeter ...
but it is here
http://git.forwardbias.in/?p=npploader.git;a=commitdiff;h=792d2f0c349320b551aa7bf717d312e0132b6bdc

Don't forget to use firefox and flash plugin ... or standalone flashplayer
Try in full screen ...

Thanks,
Daniel.

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11221
Re: Original Kernel compilation with performances degraded
« Reply #14 on: March 02, 2011, 08:26:16 AM »
Hi Daniel
First of all read this http://forum.tinycorelinux.net/index.php?topic=8717.msg47128#msg47128, pay close
attention to the sections about disabling options, then read those sections 3 more times so that they sink in.
Simply switching an option OFF and right back ON can change something else in the config file. If you use the
patched source files, and the .config file from the repository, and the same compiler version, and create the
same tinycore.gz file, you will get the same results as the original.  Your bzImage file is 1152 bytes larger
then the original, so there is at least one thing you did different. Until you reproduce the original you cannot
benchmark any changes.

"The first modification wanted is changing splash image ... I don't think it can modify anything ..."

I doesn't matter what you think, just what you know, in the end reality will prevail. Here's a good motto to live
by, "Trust but verify".

It also helps if you provide details of what you've done and what you are trying to achieve, you didn't mention
installing bash.

Easy there bmarkus, he may not know how to spell performance.