You are not logged in.

#176 2011-04-29 19:56:11

knedlyk
Member
From: L'viv, Ukraine
Registered: 2009-04-14
Posts: 163
Website

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

Here:

# ARCHITECTURE, COMPILE FLAGS
#CFLAGS="-march=i686 -mtune=generic -O2 -pipe"
#CXXFLAGS="-march=i686 -mtune=generic -O2 -pipe"
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="-march=native -O2 -pipe"
LDFLAGS="-Wl,--hash-style=gnu -Wl,--as-needed"
#MAKEFLAGS="-j2"

and

The following options are target specific:
  -m128bit-long-double                [disabled]
  -m32                                [enabled]
  -m3dnow                             [disabled]
  -m3dnowa                            [disabled]
  -m64                                [disabled]
  -m80387                             [enabled]
  -m8bit-idiv                         [disabled]
  -m96bit-long-double                 [enabled]
  -mabi=                              
  -mabm                               [disabled]
  -maccumulate-outgoing-args          [disabled]
  -maes                               [disabled]
  -malign-double                      [disabled]
  -malign-functions=                  
  -malign-jumps=                      
  -malign-loops=                      
  -malign-stringops                   [enabled]
  -mandroid                           [disabled]
  -march=                             pentium4
  -masm=                              
  -mavx                               [disabled]
  -mbionic                            [disabled]
  -mbmi                               [disabled]
  -mbranch-cost=                      
  -mcld                               [disabled]
  -mcmodel=                           
  -mcpu=                              
  -mcrc32                             [disabled]
  -mcx16                              [disabled]
  -mdispatch-scheduler                [disabled]
  -mf16c                              [disabled]
  -mfancy-math-387                    [enabled]
  -mfentry                            [enabled]
  -mfma                               [disabled]
  -mfma4                              [disabled]
  -mforce-drap                        [disabled]
  -mfp-ret-in-387                     [enabled]
  -mfpmath=                           
  -mfsgsbase                          [disabled]
  -mfused-madd                        
  -mglibc                             [enabled]
  -mhard-float                        [enabled]
  -mieee-fp                           [enabled]
  -mincoming-stack-boundary=          
  -minline-all-stringops              [disabled]
  -minline-stringops-dynamically     [disabled]
  -mintel-syntax                      
  -mlarge-data-threshold=             
  -mlwp                               [disabled]
  -mmmx                               [disabled]
  -mmovbe                             [disabled]
  -mms-bitfields                      [disabled]
  -mno-align-stringops                [disabled]
  -mno-fancy-math-387                 [disabled]
  -mno-push-args                      [disabled]
  -mno-red-zone                       [disabled]
  -mno-sse4                           [enabled]
  -momit-leaf-frame-pointer           [disabled]
  -mpc                                
  -mpclmul                            [disabled]
  -mpopcnt                            [disabled]
  -mprefer-avx128                     [disabled]
  -mpreferred-stack-boundary=         
  -mpush-args                         [enabled]
  -mrdrnd                             [disabled]
  -mrecip                             [disabled]
  -mred-zone                          [enabled]
  -mregparm=                          
  -mrtd                               [disabled]
  -msahf                              [disabled]
  -msoft-float                        [disabled]
  -msse                               [disabled]
  -msse2                              [disabled]
  -msse2avx                           [disabled]
  -msse3                              [disabled]
  -msse4                              [disabled]
  -msse4.1                            [disabled]
  -msse4.2                            [disabled]
  -msse4a                             [disabled]
  -msse5                              
  -msseregparm                        [disabled]
  -mssse3                             [disabled]
  -mstack-arg-probe                   [disabled]
  -mstackrealign                      [enabled]
  -mstringop-strategy=                
  -mtbm                               [disabled]
  -mtls-dialect=                      
  -mtls-direct-seg-refs               [enabled]
  -mtune=                             pentium4
  -muclibc                            [disabled]
  -mveclibabi=                        
  -mvect8-ret-in-mem                  [disabled]
  -mvzeroupper                        [disabled]
  -mxop                               [disabled]

I didn't try generic i686, but I shall do it in a few minutes and will check it.

Offline

#177 2011-04-29 20:39:38

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

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

Everything looks normal there... please try the generic package and let me know smile


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

Offline

#178 2011-04-29 20:48:25

knedlyk
Member
From: L'viv, Ukraine
Registered: 2009-04-14
Posts: 163
Website

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

To my regret, the same result with the generic kerne26-ck from your repo.

Offline

#179 2011-04-29 21:22:54

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

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

Is rt73usb a standard module included with the kernel, or is it something you built (I make localmodconfig on my machine so I don't know)?


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

Offline

#180 2011-04-30 05:04:02

swanson
Member
From: Sweden
Registered: 2011-02-05
Posts: 759

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

ck-k8 packages works great. A big difference actually! Thanks for the work!

Offline

#181 2011-04-30 07:20:36

knedlyk
Member
From: L'viv, Ukraine
Registered: 2009-04-14
Posts: 163
Website

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

graysky wrote:

Is rt73usb a standard module included with the kernel, or is it something you built (I make localmodconfig on my machine so I don't know)?

It is a standard kernel module http://cateee.net/lkddb/web-lkddb/RT73USB.html

Offline

#182 2011-04-30 10:37:42

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

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

Please post the output of:

# modprobe rt73usb

Also after you run that,

dmesg | tail

EDIT: I can modprobe it under kernel26-ck-core2 (from repo) or from my own compiled version with no errors.

$ dmesg | tail
[   48.395522] Disabling lock debugging due to kernel taint
[   48.957611] nvidia 0000:01:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[   48.957618] nvidia 0000:01:00.0: setting latency timer to 64
[   48.957621] vgaarb: device changed decodes: PCI:0000:01:00.0,olddecodes=io+mem,decodes=none:owns=io+mem
[   48.957740] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  270.41.06  Mon Apr 18 14:53:56 PDT 2011
[   50.753948] EXT4-fs (sdb1): re-mounted. Opts: discard,commit=0
[   50.807306] EXT4-fs (sdb2): re-mounted. Opts: discard,commit=0
[   51.340709] EXT4-fs (sda2): re-mounted. Opts: commit=0
[   74.223248] cfg80211: Calling CRDA to update world regulatory domain
[   74.245369] usbcore: registered new interface driver rt73usb

Last edited by graysky (2011-04-30 11:08:46)


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

Offline

#183 2011-04-30 16:13:50

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

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

@graysky: Where are you setting KCFLAGS for these builds? I'm not seeing it in your buildscripts or any PKGBUILD I can find. I see you're modifying CFLAGS, don't those intentionally do not affect a kernel compile.

Offline

#184 2011-04-30 17:19:28

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

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

falconindy wrote:

@graysky: Where are you setting KCFLAGS for these builds? I'm not seeing it in your buildscripts or any PKGBUILD I can find. I see you're modifying CFLAGS, don't those intentionally do not affect a kernel compile.

I don't do anything with KCFLAGS...  what are they?

For most CPU types, the CFLAGS and CXXFLAGS, they are set in the build.function file in the setup_arch function:

setup_arch() {
# arch specific parameters to override those in /etc/makepkg.conf
# fomit-frame-pointer is very likely redundant but it wont hurt
# see https://bbs.archlinux.org/viewtopic.php?id=117812
if [ $which_arch = "x86_64" ]; then
sed -i 's/build() {/build() {\nCFLAGS=\"-march=x86-64 -mtune=generic -O2 -pipe -fomit-frame-pointer\"\nCXXFLAGS=\"\${CFLAGS}\"'/ PKGBUILD
fi

if [ $which_arch = "i686" ]; then
sed -i 's/build() {/build() {\nCFLAGS=\"-march=i686 -mtune=generic -O2 -pipe -fomit-frame-pointer\"\nCXXFLAGS=\"\${CFLAGS}\"'/ PKGBUILD
fi
}

For those CPU types that use a specific set of CFLAGS/CXXFLAGS, that standard line gets modded.  For example, see line 226.


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

Offline

#185 2011-04-30 17:26:10

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

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

The kernel does not use the standard CFLAGS (compiler), CPPFLAGS (preprocessor), AFLAGS (assembler) that userland typically uses. From the toplevel Makefile in Kbuild...

# Add user supplied CPPFLAGS, AFLAGS and CFLAGS as the last assignments
# But warn user when we do so
warn-assign = \
$(warning "WARNING: Appending $$K$(1) ($(K$(1))) from $(origin K$(1)) to kernel $$$(1)")

ifneq ($(KCPPFLAGS),)
        $(call warn-assign,CPPFLAGS)
        KBUILD_CPPFLAGS += $(KCPPFLAGS)
endif
ifneq ($(KAFLAGS),)
        $(call warn-assign,AFLAGS)
        KBUILD_AFLAGS += $(KAFLAGS)
endif
ifneq ($(KCFLAGS),)
        $(call warn-assign,CFLAGS)
        KBUILD_CFLAGS += $(KCFLAGS)
endif

Sure enough, if I specify KCFLAGS, I get that lovely warning:

$ KCFLAGS='-msse4.2 -msahf' make
Makefile:630: "WARNING: Appending $KCFLAGS (-msse4.2 -msahf) from environment to kernel $CFLAGS"

Offline

#186 2011-04-30 18:55:32

demian
Member
From: Frankfurt, Germany
Registered: 2009-05-06
Posts: 709

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

Thanks for providing this repo, graysky. I just wish i found it sooner tongue.

Last edited by demian (2011-04-30 18:58:57)


no place like /home
github

Offline

#187 2011-05-05 12:05:15

JokerBoy
Member
From: România
Registered: 2009-09-24
Posts: 641

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

falconindy wrote:

The kernel does not use the standard CFLAGS (compiler), CPPFLAGS (preprocessor), AFLAGS (assembler) that userland typically uses. From the toplevel Makefile in Kbuild...

so we should use export KCFLAGS="${CFLAGS}"?

Offline

#188 2011-05-06 17:15:18

LeCrayonVert
Member
Registered: 2010-09-01
Posts: 134

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

Could you please update kernel from 2.6.38.4 to 2.6.38.5 (in order to solve this issue https://bugs.archlinux.org/task/23886) ?
Thx


I believe in a world I can and do understand. A rational universe, explained through rational means.

Offline

#189 2011-05-06 20:24:21

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

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

LeCrayonVert wrote:

Could you please update kernel from 2.6.38.4 to 2.6.38.5 (in order to solve this issue https://bugs.archlinux.org/task/23886) ?
Thx

Updated on 03-May... repo is hosting 2.6.38.5 now.  You can't see it?


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

Offline

#190 2011-05-06 22:55:02

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

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

JokerBoy wrote:
falconindy wrote:

The kernel does not use the standard CFLAGS (compiler), CPPFLAGS (preprocessor), AFLAGS (assembler) that userland typically uses. From the toplevel Makefile in Kbuild...

so we should use export KCFLAGS="${CFLAGS}"?

If you want CFLAGS to take effect, then yes. Otherwise, KBuild does not honor them. I'll mention that the warning is there for a damn good reason...

Offline

#191 2011-05-06 23:41:16

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

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

falconindy wrote:

If you want CFLAGS to take effect, then yes. Otherwise, KBuild does not honor them. I'll mention that the warning is there for a damn good reason...

...what's the damn good reason?  Just as a sanity check to warn the user to be damn sure the flags are correct?

Makefile:634: "WARNING: Appending $KCFLAGS (-march=native -O2 -pipe -fomit-frame-pointer) from environment to kernel $CFLAGS"

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

Offline

#192 2011-05-06 23:45:43

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

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

Because kernel code is already micro optimized and written the way the developer wants it to behave in assembly. More often than not, you don't want this being mangled by a compiler. Linus has ranted about this topic with regard to gcc many times...

Last edited by falconindy (2011-05-06 23:45:55)

Offline

#193 2011-05-07 00:06:56

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

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

So adding the export line would be a disadvantage?  I added prior to the " make bzImage modules" line and successfully complied/rebooted into it.  No ill effects that I can see.


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

Offline

#194 2011-05-07 01:54:18

Grinch
Member
Registered: 2010-11-07
Posts: 265

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

Possibly, from what I've read the reason that changing the optimization flags may impact the kernel negatively is that in order to get the best possible performance/control the kernel devs rely heavily on gcc compiler extensions (afaik these extensions have pretty much solely been added to gcc at the request of said kernel devs) in time critical code which allows them a high level of control regarding branch prediction, cache usage etc. And from what I gather, using other optimization options other than those chosen by the devs can negatively impact this 'hand-optimization' that the kernel devs do with extensions such as __builtin_expect, __builtin_prefetch etc.

It was quite some time that I read about this though so I have no idea if this still holds true.

Offline

#195 2011-05-10 19:20:12

alessandro_ufms
Member
From: Campo Grande, MS - Brazil
Registered: 2008-06-25
Posts: 153

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

Thanks for maintain this repository. I'm using here and it's working fine.

Offline

#196 2011-05-10 19:23:25

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

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

alessandro_ufms wrote:

Thanks for maintain this repository. I'm using here and it's working fine.

You're welcome.  For general info: I think I squashed all the problems associated with incomplete xfers to/from my site by using lftp's mirror function.

#!/bin/bash

lftp -c "set ftp:list-options -a;
open ftp://USERNAME:PASSWORD@HOST;
lcd /media/data/repo/
mirror -a -c -R --delete --use-cache --verbose --parallel=1 --no-symlinks"

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

Offline

#197 2011-05-10 19:45:42

alessandro_ufms
Member
From: Campo Grande, MS - Brazil
Registered: 2008-06-25
Posts: 153

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

Hmm... the recent update is causing the following error:
error: failed to commit transaction (invalid or corrupted package)
kernel26-ck-headers-2.6.38.6-1-x86_64.pkg.tar.xz is invalid or corrupted
Errors occurred, no packages were upgraded.

Offline

#198 2011-05-10 19:59:26

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

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

Odd... try to refresh via

pacman -Syy

then

pacman -Syu


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

Offline

#199 2011-05-10 20:31:39

mikkie
Member
Registered: 2009-11-10
Posts: 52

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

I am getting the same error as alessandro_ufms but for kernel26-ck-2.6.38.6-1-x86_64.pkg.tar.xz. Refreshing the repository didn't help...

Offline

#200 2011-05-10 23:14:24

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

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

@mikkie and alessandro - deleted the files on the ftp and reuploaded.  Tested on my machine and all is well now. 

This is pissing me off.  Does anyone know of an ftp client like lftp that can mirror a dirtree using md5sums or something fail safe regarding file checks?


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

Offline

Board footer

Powered by FluxBB