Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel 4.12.0 to 4.12.1 in 11 minutes!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
Irre
Apprentice
Apprentice


Joined: 09 Nov 2013
Posts: 271
Location: Stockholm

PostPosted: Fri Jul 14, 2017 8:13 pm    Post subject: Kernel 4.12.0 to 4.12.1 in 11 minutes! Reply with quote

I used to have different gentoo-source on a server for all Gentoo systems. That was not good. Building of kernel was very slow. And sometimes the system hang. :(

I still keep distfiles on the server, but linux source lives only on tempary space. This is how I upgrade now:

In /etc/fstab:
Code:
tmpfs                   /tmp            tmpfs           size=4g,nosuid,nodev   0 0
tmpfs                   /var/tmp        tmpfs           size=4g,nosuid,nodev    0 0
tmpfs                   /usr/src        tmpfs           size=4g,nosuid,nodev    0 0

Command to build new kernel:
Code:
time (emerge -1 gentoo-sources;genkernel --menuconfig --install --integrated-initramfs --kernel-config=/proc/config.gz all)

Calculating dependencies... done!
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) sys-kernel/gentoo-sources-4.12.1::gentoo
>>> Installing (1 of 1) sys-kernel/gentoo-sources-4.12.1::gentoo
>>> Jobs: 1 of 1 complete                           Load avg: 0.88, 0.43, 0.23

 * Messages for package sys-kernel/gentoo-sources-4.12.1:

 * If you are upgrading from a previous kernel, you may be interested
 * in the following document:
 *   - General upgrade guide: https://wiki.gentoo.org/wiki/Kernel/Upgrade
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.
* Gentoo Linux Genkernel; Version 3.4.52.4
* Running with options: --menuconfig --install --integrated-initramfs --kernel-config=/proc/config.gz all

* Using genkernel.conf from /etc/genkernel.conf
* Sourcing arch-specific config.sh from /usr/share/genkernel/arch/x86_64/config.sh ..
* Sourcing arch-specific modules_load from /usr/share/genkernel/arch/x86_64/modules_load ..

* Linux Kernel 4.12.1-gentoo for x86_64...
* .. with config file /proc/config.gz
* kernel: Using config from /proc/config.gz
* kernel: >> Running mrproper...
*         >> Running oldconfig...
* kernel: >> Cleaning...
* kernel: >> Invoking menuconfig...
*         >> Compiling 4.12.1-gentoo bzImage...
...
...
real   10m54.726s
user   62m33.940s
sys   3m27.094s
:D
Back to top
View user's profile Send private message
Ant P.
Advocate
Advocate


Joined: 18 Apr 2009
Posts: 4532

PostPosted: Fri Jul 14, 2017 10:41 pm    Post subject: Reply with quote

I leave linux kernel source on a read-only network mount and use out-of-tree builds. The numbers may be interesting:
Code:
~ $ time (ssh $server "cd /usr/src/linux/ && git pull --rebase" && cd ~/kbuild/ && make oldconfig && make -j$(nproc))
...
real    1m4.626s
user    0m59.973s
sys     0m6.565s

 ~ $ du -sh /mnt/nfs/src/linux/
2.7G    /mnt/nfs/src/linux/

 ~ $ du -sh kbuild
359M    kbuild

_________________
*.ebuild // /etc/service/*
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum