Re: How to increase maximum user cpu usage allowed on a multi core system?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 18 Mar 2015 18:19:54 +0100
Heinz Diehl <htd+ml@xxxxxxxxxx> wrote:

> 1. Download a kernel tarball from kernel.org
> 2. Unpack it into /usr/src
> 3. Copy .config from the latest Fedora kernel into the kernel toplevel
>    sourcedir (it is stored in /boot).
> 4. "make oldconfig"
> 5. "make"
> 6. "make modules_install"
> 7. "make install"
> 8. Reboot

Thanks.

> 
> Step 3. is for convenience, you can of course use your own .config.

Yeah, I usually do a make menuconfig after make oldconfig.

> This kernel will live peacefully alongside of your Fedora kernels.
 
That's good.  How do you remove the old kernels so that they don't pile
up indefinitely?  Manually?  Or does this automatically replace the last
version that was compiled and installed this way?  That is, does it use
a generic install directory, or one that is stamped with kernel version?

Here's my Fedora rpmbuild procedure:

I go to koji, the fedora central build repository for package
maintainers, and download the src.rpm.

http://koji.fedoraproject.org/koji/packageinfo?packageID=8

I use rpm to install it into the ~/rpmbuild heirarchy as a user.
rpm -ivh kernel-4.0.0-0.rc3.git1.1.fc22.src.rpm
This requires that the rpm-build package be installed.

I then go to ~/rpmbuild/SPECS to unpack and patch it.
rpmbuild -bp kernel.spec

This puts the unpacked, patched source in, for example, 
~/rpmbuild/BUILD/kernel-4.0-rc3.fc21/linux-4.0.0-0.rc3.git2.1.20150315.fc21.x86_64

The vanilla kernel is there as, for example,
~/rpmbuild/BUILD/kernel-4.0-rc3.fc21/vanilla-4.0-rc3-git2
but I'm not using that.

In the 
~/rpmbuild/BUILD/kernel-4.0-rc3.fc21/linux-4.0.0-0.rc3.git2.1.20150315.fc21.x86_64
directory, I cp from /boot the config file for the last kernel I built
into .config.

I then run  make oldconfig  to set the new kernel to that previous
config.

I then run make menuconfig to do any tweaks or changes I want to the
new kernel.  I try to remove modules and options I don't need on my
system to speed up compilation.  I then save that as a new .config.

I edit the new .config, and put  # x86_64  as the first line, so the
rpmbuild program can find it, and move that to 
~/rpmbuild/SOURCES/config-x86_64-generic

I move to 
~/rpmbuild/SPECS
and edit kernel.spec to add the date to the
kernel name.
%define buildid .20150315

I then run the rpm build process as 
rpmbuild -bb --without debug --target=`uname -m` kernel.spec  >
build_output  2> error_output

This eventually produces the kernel rpms in ~/rpmbuild/RPMS/x86_64 which
I then install using yum -C from within that directory.

I do all this in a virtual console, within screen, which has windows
for each of the places I need to go.  All except the install step are
run as user.

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux