You are not logged in.

#576 2011-11-10 21:29:21

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,643
Website

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

dare- downsides like what could go wrong with adding that provides array?  I understand how it works and what it does, I just haven't thought about a situation where that could screw something up... is there one anyone can think of?  If it's something value-added I am all for it.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#577 2011-11-12 00:50:23

poltak
Member
From: Hong Kong
Registered: 2010-11-05
Posts: 32

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

Hi, are you planning to include the newly released patch for the famous 2.6.38+ ASPM power regression bug, or leave it up to individuals until it gets accepted into the mainline release? I've just noticed that you've included other patches in your aur package, and this one would be a much appreciated one, especially for laptop users.


I like Arch

Offline

#578 2011-11-12 01:57:19

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,643
Website

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

@poltak - this is the first I've heard of it and am unqualified to make a call as to its implications to stability, etc..  Judging by the response in the LKML, they're taking a wait-and-see approach to it.  You wanna open a flyspray request to see how the Arch dev's feel about including it?


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#579 2011-11-12 01:59:01

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

also, it doesn't apply cleanly on -stable

Offline

#580 2011-11-12 03:37:27

Evanlec
Member
From: NH, USA
Registered: 2007-12-16
Posts: 141
Website

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

graysky wrote:

dare- downsides like what could go wrong with adding that provides array?  I understand how it works and what it does, I just haven't thought about a situation where that could screw something up... is there one anyone can think of?  If it's something value-added I am all for it.

I can't see any downsides. The provides array makes a lot more sense to me anyway...linux-ck-kx should provide linux-ck , same with linux-headers-ck-kx should provide linux-headers-ck

Offline

#581 2011-11-12 03:58:41

Evanlec
Member
From: NH, USA
Registered: 2007-12-16
Posts: 141
Website

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

Also...your repo seems to be down...if you want I could provide a failover mirror? using a dns failover method so it was transparent to users..

Offline

#582 2011-11-12 10:40:04

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,643
Website

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

@Evanlec - thanks for the feedback.  Are you sure it's down?  Works for me...

$ sudo pacman -Syy
:: Synchronizing package databases...
 core                                      97.7K  500.1K/s 00:00:00 [#####################################] 100%
 extra                                   1093.1K 1849.2K/s 00:00:01 [#####################################] 100%
 multilib                                  56.8K  388.5K/s 00:00:00 [#####################################] 100%
 community                                811.9K 1630.7K/s 00:00:00 [#####################################] 100%
 repo-ck                                    8.5K   90.2K/s 00:00:00 [#####################################] 100%

CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#583 2011-11-12 10:44:38

big_bum
Member
From: Bucharest,Romania,Europe,World
Registered: 2011-08-29
Posts: 47

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

Now it's working.

LE: Not working again...

:: Retrieving packages from repo-ck...
error: failed retrieving file 'linux-ck-corex-3.1-6-x86_64.pkg.tar.xz' from repo-ck.com : Not Found
error: failed retrieving file 'linux-ck-corex-headers-3.1-6-x86_64.pkg.tar.xz' from repo-ck.com : Not Found
warning: failed to retrieve some files from repo-ck
error: failed to commit transaction (Not Found)
Errors occurred, no packages were upgraded.

Last edited by big_bum (2011-11-12 10:45:23)

Offline

#584 2011-11-12 10:55:41

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,643
Website

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

@big_bum - thank you for that... a mistake with rsync removed the linux-ck-*.xz packages from x86_64 is my best guess.  I am re-uploading them now; check back in 15 min or so.  Also, building 3.1.1-1 for the repo now.  They should be online in 2 h or so.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#585 2011-11-12 10:59:16

big_bum
Member
From: Bucharest,Romania,Europe,World
Registered: 2011-08-29
Posts: 47

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

No problem, but you shouldn't tell me that you're building 3.1.1. tongue
Now I'll wait for the 3.1.1 kernel instead of updating to 3.1-6.

Offline

#586 2011-11-12 12:41:38

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,643
Website

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

3.1.1-1 packages are online now.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#587 2011-11-12 12:55:44

big_bum
Member
From: Bucharest,Romania,Europe,World
Registered: 2011-08-29
Posts: 47

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

Updated && working like a charm.

Offline

#588 2011-11-13 01:07:56

twilight0
Member
From: Greece
Registered: 2011-05-01
Posts: 233
Website

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

@graysky what cflags do you use now in linux-ck-kx package?


Proud Arch Linux user since 2007.

Offline

#589 2011-11-13 01:38:48

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,643
Website

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

@twilight - The external CFLAGS have no effect on kernels, what counts is the settings used in the .config file which I change for each specific package;  see post #593 for details.

EDIT: I edited this to make more sense for someone just finding this thread on a search.

Last edited by graysky (2011-11-13 11:11:23)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#590 2011-11-13 02:30:30

MrCode
Member
Registered: 2010-02-06
Posts: 373

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

I am convinced that CFLAGS have no effect on kernels

So, wait…why do we have ck-corex, kx, p4, etc. then?

I'm probably just misunderstanding this, but I thought the point of those packages was that they were built with mtune/march options appropriate to that particular microarch… hmm

Offline

#591 2011-11-13 03:44:39

twilight0
Member
From: Greece
Registered: 2011-05-01
Posts: 233
Website

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

@graysky Not the generic packages, the AMD ones please.


Proud Arch Linux user since 2007.

Offline

#592 2011-11-13 05:18:35

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

these are his makepkg.conf CFLAGS which indeed are ignored when building a kernel. however, you can setup the cpu type in your kernel config, which will be passed to gcc. hence the different packages.

/edit: see this file, starting at line 52 and also this file to see the what .config settings do.

Last edited by bangkok_manouel (2011-11-13 05:30:31)

Offline

#593 2011-11-13 11:12:27

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,643
Website

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

MrCode wrote:

I am convinced that CFLAGS have no effect on kernels

So, wait…why do we have ck-corex, kx, p4, etc. then?

I'm probably just misunderstanding this, but I thought the point of those packages was that they were built with mtune/march options appropriate to that particular microarch… hmm

twilight0 wrote:

@graysky Not the generic packages, the AMD ones please.

Quick answer:
I build each package because all the tuning we usually do in /etc/makepkg.conf happens based on the options in the .config that is generated for each specific CPU.  This is a special case that applies to the kernel packages... these settings reflect the "Processor Family" setting in the .config file used to compile.  As bangkok_m pointed out, if you read the makefile for the kernel packages, the processor family settings set up cflags as well as other CPU-specific optimization which I do for each package.  These settings effectively redefine the cflags values specified in /etc/makepkg.conf or ~/.makepkg.conf.

More details:
To see for yourself, download the AUR PKGBUILD and enable the "_makenconfig" option.  Start the build and when you get into the nconfig tool, navigate to: Processor type and features>Processor family

Here is a screenshot of what the x86_64 selection there looks like; this would be for the corex packages:
x86_64.png

bangkok_manouel wrote:

these are his makepkg.conf CFLAGS which indeed are ignored when building a kernel. however, you can setup the cpu type in your kernel config, which will be passed to gcc. hence the different packages.

As bangkok_manouel pointed out, external cflags are redefined within the Makefile itself and are thereby ignored.  See the following two files for what this setting correspond to behind-the-scenes.

arch/x86/Makefile
arch/x86/Makefile_32.cpu

Excerpt from $srcdir/linux-$pkgver/arch/x86/Makefile:

# FIXME - should be integrated in Makefile.cpu (Makefile_32.cpu)
cflags-$(CONFIG_MK8) += $(call cc-option,-march=k8)
cflags-$(CONFIG_MPSC) += $(call cc-option,-march=nocona)

cflags-$(CONFIG_MCORE2) += \
$(call cc-option,-march=core2,$(call cc-option,-mtune=generic))
cflags-$(CONFIG_MATOM) += $(call cc-option,-march=atom) \
$(call cc-option,-mtune=atom,$(call cc-option,-mtune=generic))
cflags-$(CONFIG_GENERIC_CPU) += $(call cc-option,-mtune=generic)
...

Last edited by graysky (2011-11-13 11:56:52)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#594 2011-11-13 11:39:51

poltak
Member
From: Hong Kong
Registered: 2010-11-05
Posts: 32

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

graysky wrote:

Quick answer:
I build each package because all the tuning we usually do in /etc/makepkg.conf happens based on the options in the .config that is generated for each specific CPU.  This is a special case that applies to the kernel packages... these settings reflect the "Processor Family" setting in the .config file used to compile.  As bangkok_m pointed out, if you read the makefile for the kernel packages, the processor family settings set up cflags as well as other CPU-specific optimization which I do for each package.  These settings effectively redefine the cflags values specified in /etc/makepkg.conf or ~/.makepkg.conf.

Sorry, but just going back to what twilight0 asked (or rephrasing it), what Processor Family options do you use for the linux-ck-kx (AMD) package?
I just ask as in the wiki it states that it's optimised for K10 family processors (Phenom II etc.), but I've been under the assumption for a while that the "Opteron/Athlon64/Hammer/K8" option in Processor Family in .config does not specifically build the kernel optimised for K10 family processors... are my assumptions just outdated, or do you do some other magic to this package that makes it nice for AMD processors (including the K10 family)?


I like Arch

Offline

#595 2011-11-13 11:55:02

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,643
Website

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

poltak wrote:

Sorry, but just going back to what twilight0 asked (or rephrasing it), what Processor Family options do you use for the linux-ck-kx (AMD) package?
I just ask as in the wiki it states that it's optimised for K10 family processors (Phenom II etc.), but I've been under the assumption for a while that the "Opteron/Athlon64/Hammer/K8" option in Processor Family in .config does not specifically build the kernel optimised for K10 family processors... are my assumptions just outdated, or do you do some other magic to this package that makes it nice for AMD processors (including the K10 family)?

As of 3.1.1, the kernel devs do not have an implicate k10 option.  To answer your question, I use "Opteron/Athlon64/Hammer/K8" which accoring to src/linux-3.1/arch/x86/Makefile:

cflags-$(CONFIG_MK8) += $(call cc-option,-march=k8)

Perhaps someone needs to make a suggestion to LKML to add additional options?


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#596 2011-11-13 12:02:42

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

A quick and dirty sed line should do the job if gcc supports this flag

Offline

#597 2011-11-13 12:22:34

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,643
Website

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

@bangkok - that thought crossed my mind but are there more options in other files?  I'm no kernel hacker smile


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#598 2011-11-13 12:40:07

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

greping the source tells me that should be enough, i'll try smile

Offline

#599 2011-11-13 13:00:42

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

@graysky, that should work, see Documentation/kbuild/makefiles.txt

Offline

#600 2011-11-13 21:12:07

MrCode
Member
Registered: 2010-02-06
Posts: 373

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

graysky wrote:

Quick answer:
I build each package because all the tuning we usually do in /etc/makepkg.conf happens based on the options in the .config that is generated for each specific CPU.  This is a special case that applies to the kernel packages... these settings reflect the "Processor Family" setting in the .config file used to compile.  As bangkok_m pointed out, if you read the makefile for the kernel packages, the processor family settings set up cflags as well as other CPU-specific optimization which I do for each package.  These settings effectively redefine the cflags values specified in /etc/makepkg.conf or ~/.makepkg.conf.

Thanks for the clarification. smile

Offline

Board footer

Powered by FluxBB