Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Official thread: "zen-sources" - Part 7
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 9, 10, 11, 12  Next  
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Rion
Guru
Guru


Joined: 12 Oct 2006
Posts: 377
Location: Ekaterinburg, Russia

PostPosted: Sun Sep 20, 2009 4:36 pm    Post subject: Reply with quote

cheater1034 wrote:
Rion wrote:
its on master now
Code:
# genkernel --disklabel all
* Gentoo Linux Genkernel; Version 3.4.10.906
* Running with options: --disklabel all

* Linux Kernel 2.6.31-zen0 for x86_64...
why zen0 ?

PS i think i'll move got gentoo-sources if my microphone won't work with zen2.. something is really wrong with alsa in zen


http://zen-sources.org/content/master-changes-what-you-need-know-if-you-are-using-git

so why zen0 but not zen2 in master branch? =)

cheater1034 wrote:
Any why genkernel :O, (the only thing i'd slightly reccomend genkernel for is the initramfs)

I'm quite happy with genkernel for 2 years. so why not.

cheater1034 wrote:
This patch should fix the problems with ATI drivers and possibly the i915 drivers too, so you can try it if you are having a problem with either:
http://ck.kolivas.org/patches/bfs/bfs230-fixdodgydrivers2.patch
that was not for me i guess)
_________________
~amd64
rion-overlay
Back to top
View user's profile Send private message
Jupiter1TX
Guru
Guru


Joined: 24 Feb 2006
Posts: 546
Location: 3rd Rock

PostPosted: Sun Sep 20, 2009 5:07 pm    Post subject: Reply with quote

Ok 2.6.31-zen2+CFS some improvements, some not so much...
http://global.phoronix-test-suite.com/index.php?k=profile&u=zero-21997-21802-1615
_________________
Core i7 920 D0 | Asus P6T DLX | Patriot Viper 1600 6GB | Antec Quattro 850W
Geforce 8800GTX OC2 768MB | Dell 22" LCD | Koolance Exos2/Swiftech GTZ
GCC 4.6.1 | 3.7.x-geek | Xorg-7.4-x | KDE-4.7.x | Compiz
Back to top
View user's profile Send private message
ponciarello
Apprentice
Apprentice


Joined: 22 Jul 2008
Posts: 223
Location: beach of slack

PostPosted: Sun Sep 20, 2009 5:55 pm    Post subject: Reply with quote

cheater1034 wrote:
This patch should fix the problems with ATI drivers and possibly the i915 drivers too, so you can try it if you are having a problem with either:
http://ck.kolivas.org/patches/bfs/bfs230-fixdodgydrivers2.patch

sorry cheater, but patch doesn't apply cleanly to zen because of kernel/sched_bfs.c that is different from kolivas patch.
(maybe it's easy but) I really don't know where to put the
Code:
if ((in_atomic() || irqs_disabled()) && !oops_in_progress)
     return;

i would really appreciate some help :)
Code:
Index: linux-2.6.31-bfs/kernel/sched_bfs.c
===================================================================
--- linux-2.6.31-bfs.orig/kernel/sched_bfs.c   2009-09-20 14:59:27.620489951 +1000
+++ linux-2.6.31-bfs/kernel/sched_bfs.c   2009-09-20 15:57:28.197240123 +1000
@@ -3538,6 +3538,9 @@ static void __cond_resched(void)
 {
 #ifdef CONFIG_DEBUG_SPINLOCK_SLEEP
    __might_sleep(__FILE__, __LINE__);
+#else /* WE SHOULDN'T DO THIS BUT IT MAKES SOME DODGY DRIVERS WORK FOR NOW */
+   if ((in_atomic() || irqs_disabled()) && !oops_in_progress)
+          return;
 #endif
    /*
     * The BKS might be reacquired before we have dropped

kolivas bfs patch
Code:
/**
 * sys_sched_yield - yield the current processor to other threads.
 *
 * This function yields the current CPU to other tasks. It does this by
 * refilling the timeslice, resetting the deadline and scheduling away.
 */
SYSCALL_DEFINE0(sched_yield)
{
        struct task_struct *p;

        grq_lock_irq();
        p = current;
        schedstat_inc(this_rq(), yld_count);
        update_rq_clock(task_rq(p));
        time_slice_expired(p);
        requeue_task(p);

        /*
         * Since we are going to call schedule() anyway, there's
         * no need to preempt or enable interrupts:
         */
        __release(grq.lock);
        spin_release(&grq.lock.dep_map, 1, _THIS_IP_);
        _raw_spin_unlock(&grq.lock);
        preempt_enable_no_resched();

        schedule();

        return 0;
}

static inline int should_resched(void)
{
        return need_resched() && !(preempt_count() & PREEMPT_ACTIVE);
}

static void __cond_resched(void)
{
#ifdef CONFIG_DEBUG_SPINLOCK_SLEEP
        __might_sleep(__FILE__, __LINE__);
#endif
        /*
         * The BKS might be reacquired before we have dropped
         * PREEMPT_ACTIVE, which could trigger a second
         * cond_resched() call.
         */
        do {
                add_preempt_count(PREEMPT_ACTIVE);
                schedule();
                sub_preempt_count(PREEMPT_ACTIVE);
        } while (need_resched());
}

int __sched _cond_resched(void)
{
        if (should_resched()) {
                __cond_resched();
                return 1;
        }
        return 0;
}
EXPORT_SYMBOL(_cond_resched);

zen
Code:
/**
 * sys_sched_yield - yield the current processor to other threads.
 *
 * This function yields the current CPU to other tasks. It does this by
 * refilling the timeslice, resetting the deadline and scheduling away.
 */
SYSCALL_DEFINE0(sched_yield)
{
   struct task_struct *p;

   grq_lock_irq();
   p = current;
   schedstat_inc(this_rq(), yld_count);
   update_rq_clock(task_rq(p));
   time_slice_expired(p);
   requeue_task(p);

   /*
    * Since we are going to call schedule() anyway, there's
    * no need to preempt or enable interrupts:
    */
   __release(grq.lock);
   spin_release(&grq.lock.dep_map, 1, _THIS_IP_);
   _raw_spin_unlock(&grq.lock);
   preempt_enable_no_resched();

   schedule();

   return 0;
}

static inline int should_resched(void)
{
   return need_resched() && !(preempt_count() & PREEMPT_ACTIVE);
}

static void __cond_resched(void)
{
   add_preempt_count(PREEMPT_ACTIVE);
   schedule();
   sub_preempt_count(PREEMPT_ACTIVE);
}

int __sched _cond_resched(void)
{
   if (should_resched()) {
      __cond_resched();
      return 1;
   }
   return 0;
}
EXPORT_SYMBOL(_cond_resched);
Back to top
View user's profile Send private message
pappy_mcfae
Watchman
Watchman


Joined: 27 Dec 2007
Posts: 5999
Location: Pomona, California.

PostPosted: Sun Sep 20, 2009 7:53 pm    Post subject: Reply with quote

ponciarello wrote:
Code:
git diff v2.6.31 origin/master-2.6.31 > ../2.6.31-zen.patch

to make a patch of latest master-2.6.31 (to apply on 2.6.31 vanilla).

Thanks for that. I'll try it out later on today.

Blessed be!
Pappy
_________________
This space left intentionally blank, except for these ASCII symbols.
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5881

PostPosted: Sun Sep 20, 2009 8:00 pm    Post subject: Reply with quote

Okay, it's still screwed up with a vanilla 2.6.31. How do I get -rc8-zen from the git repo? At least I knew that one worked...
Back to top
View user's profile Send private message
mantoo
Tux's lil' helper
Tux's lil' helper


Joined: 08 Dec 2007
Posts: 98
Location: Germany

PostPosted: Sun Sep 20, 2009 9:01 pm    Post subject: Reply with quote

[quote="cheater1034"]
Ant_P wrote:
master-2.6.31 just updated with tons more upstream scheduler updates - both masters have CFS boost now too


i would appreciate to see those updates maybe besides some others, which made the 2.6.30.5 to become 2.6.30.6(as i found it doin' a 'git tag')/7 (which i saw on lkml), in a 2.6.30-zen6 if that isn´t too far away from making sense :)


tanks, mantoo
Back to top
View user's profile Send private message
cheater1034
Veteran
Veteran


Joined: 09 Sep 2004
Posts: 1558

PostPosted: Mon Sep 21, 2009 12:47 am    Post subject: Reply with quote

master-2.6.30 is staying updated with latest bfs and upstream stable kernel, but it will not receive the latest sched core changes (it's simply too much to backport - use 2.6.31-zen or 2.6.32-rc zen for the sched-core updates)

I'm done going through it, origin/master =============== DEVEL ONLY, -rc kernels, etc - it's totally older than master-2.6.31 and is broken at the same time., use origin/master-2.6.xy for the stable zens! (as you can see .32-rc1 isnt out yet so origin/master hasnt been started/rebased yet)

@ponci:
i'll make a patch against zen-sched and post it here (it won't go in the actual zen kernel because of the nature of it)

@Jupiter
Good tests, but kind of unfairly justified as 2.6.31-zen0 bfs is currently MUCH older than what is found in master-2.6.31
CFS doesn't look all that much improved in all of those tests - but others show it is (of course the other tests that show it is are still mostly minor improvements - not the fixing that the upstream scheduler needs)
_________________
IRC!: #zen-sources on irc.rizon.net
zen-kernel.org
--
Lost in android development land.
Back to top
View user's profile Send private message
ponciarello
Apprentice
Apprentice


Joined: 22 Jul 2008
Posts: 223
Location: beach of slack

PostPosted: Mon Sep 21, 2009 5:30 am    Post subject: Reply with quote

Ant_P wrote:
Okay, it's still screwed up with a vanilla 2.6.31. How do I get -rc8-zen from the git repo? At least I knew that one worked...

looking at git it looks like the last rc8-zen1 commit is 3772acd9a527520c14e21247c204921772bddf8d (I am guessing)
issuing inside the git tree a
Code:
git diff v2.6.31-rc8 3772acd9a527520c14e21247c204921772bddf8d > ../2.6.31-rc8_2.6.31-rc8-zen1.patch

should be enough to create the patch for 2.6.31-rc8 vanilla :)

you can also try with older commits ;)

@cheater: tnx for da patch, I got two pcs with fglrx (one is the desktop they gave me at work) that are happy hearing the news :D
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5881

PostPosted: Mon Sep 21, 2009 9:54 pm    Post subject: Reply with quote

I've ended up dumping gentoo-sources 2.6.30-r7 on it for now until I can be bothered to fix it, it's mainly a server after all so it's not like I'll notice a difference.

Totally unrelated question: I use that box for my main repo-syncing stuff and then I do a git-clone from my other PCs to that one to save having to download things twice, is there an easy way to get the origin/master-2.6.31 branch on my other boxes with that setup or do I need to screw around with remotes on them?

* * *

Forget that, I've figured it out myself: `git checkout -t origin/master-2.6.31` on the outside-facing box and the same again on the LAN works perfectly.
Back to top
View user's profile Send private message
bollucks
l33t
l33t


Joined: 27 Oct 2004
Posts: 606

PostPosted: Tue Sep 22, 2009 12:00 pm    Post subject: Reply with quote

bfs232 is out and there are reports of it fixing the ATI driver in #ck :)
Back to top
View user's profile Send private message
cheater1034
Veteran
Veteran


Joined: 09 Sep 2004
Posts: 1558

PostPosted: Tue Sep 22, 2009 8:38 pm    Post subject: Reply with quote

bollucks wrote:
bfs232 is out and there are reports of it fixing the ATI driver in #ck :)

cool, tell me or con if it is fixed for you ;) (applies to everybody using ati driver) - or any driver that is fixed now.
_________________
IRC!: #zen-sources on irc.rizon.net
zen-kernel.org
--
Lost in android development land.
Back to top
View user's profile Send private message
darklegion
Guru
Guru


Joined: 14 Nov 2004
Posts: 468

PostPosted: Wed Sep 23, 2009 5:06 am    Post subject: Reply with quote

Intermittent boot failure is greatly reduced on my system, since bfs-232.Boots 3/4 times so far, instead of 1/15 like it was before.
Back to top
View user's profile Send private message
rahulthewall
Veteran
Veteran


Joined: 01 Nov 2007
Posts: 1264
Location: Zürich

PostPosted: Wed Sep 23, 2009 7:24 am    Post subject: Reply with quote

Using 2.6.31-zen2 and shutdown hangs at "mounting / read only" - requiring a force shutdown at that stage. Using BFS.
_________________
Who shall guard the guards?
Back to top
View user's profile Send private message
ponciarello
Apprentice
Apprentice


Joined: 22 Jul 2008
Posts: 223
Location: beach of slack

PostPosted: Wed Sep 23, 2009 8:07 am    Post subject: Reply with quote

still some issues with scrolling pages in firefox with ati (but they works).
no luck with intel (freeze :( kms not "enabled by default")
Code:
00:02.0 VGA compatible controller: Intel Corporation 82G33/G31 Express Integrated Graphics Controller (rev 10)

_________________
look for monty python channel on youtube :D
Back to top
View user's profile Send private message
viralex
Apprentice
Apprentice


Joined: 24 Apr 2008
Posts: 237
Location: Viareggio (Lu,Italy)

PostPosted: Wed Sep 23, 2009 9:59 am    Post subject: Reply with quote

I am looking at my bootcharts.

with 2.6.31-zen1 BFS 221 26.0 sec 45MB/S

with 2.6.31-zen2 BFS 230 25.0 sec 45MB/S

with 2.6.31-zen2 BFS 231 26.2 sec 22MB/s (speedboot)


why 22MB/s?
Back to top
View user's profile Send private message
broch
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jul 2005
Posts: 94

PostPosted: Wed Sep 23, 2009 1:47 pm    Post subject: Reply with quote

viralex wrote:
I am looking at my bootcharts.

with 2.6.31-zen1 BFS 221 26.0 sec 45MB/S

with 2.6.31-zen2 BFS 230 25.0 sec 45MB/S

with 2.6.31-zen2 BFS 231 26.2 sec 22MB/s (speedboot)


why 22MB/s?


less disk access is better?

I have 15sec (bootchart) and 7MB/s
Back to top
View user's profile Send private message
aTan
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jan 2007
Posts: 134
Location: Czech Republic (Ukraine)

PostPosted: Wed Sep 23, 2009 6:55 pm    Post subject: Reply with quote

suspend to ram is still broken for me.
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6108
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Wed Sep 23, 2009 8:00 pm    Post subject: Reply with quote

broch wrote:
viralex wrote:
I am looking at my bootcharts.

with 2.6.31-zen1 BFS 221 26.0 sec 45MB/S

with 2.6.31-zen2 BFS 230 25.0 sec 45MB/S

with 2.6.31-zen2 BFS 231 26.2 sec 22MB/s (speedboot)


why 22MB/s?


less disk access is better?

I have 15sec (bootchart) and 7MB/s


a lower throughput doesn't imply less disk access - au contraire it's quite the opposite
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
broch
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jul 2005
Posts: 94

PostPosted: Wed Sep 23, 2009 9:02 pm    Post subject: Reply with quote

26.0 sec 45MB/S
26.2 sec 22MB/s

so tell me how come that with 2x lower disk throughput his boot time is essentially the same?
I might be wrong but I doubt that this measures real disk throughput. I think that it measures disk access during boot process and more is not better.
Back to top
View user's profile Send private message
cheater1034
Veteran
Veteran


Joined: 09 Sep 2004
Posts: 1558

PostPosted: Wed Sep 23, 2009 9:34 pm    Post subject: Reply with quote

rahulthewall wrote:
Using 2.6.31-zen2 and shutdown hangs at "mounting / read only" - requiring a force shutdown at that stage. Using BFS.


Someone had this same problem, possibly are you using parallel boot by any chance? These parallel boot things have been known to not work with SD and someone had it with BFS as well.

@darklegion
I had intermittent boot failures A LOT with earlier versions, it's almost non-existant with bfs 22x+ (i havent done a series of boots, but every time i reboot/boot it has worked), whereas before it would work very rarely.
_________________
IRC!: #zen-sources on irc.rizon.net
zen-kernel.org
--
Lost in android development land.
Back to top
View user's profile Send private message
rahulthewall
Veteran
Veteran


Joined: 01 Nov 2007
Posts: 1264
Location: Zürich

PostPosted: Wed Sep 23, 2009 9:43 pm    Post subject: Reply with quote

cheater1034 wrote:
rahulthewall wrote:
Using 2.6.31-zen2 and shutdown hangs at "mounting / read only" - requiring a force shutdown at that stage. Using BFS.


Someone had this same problem, possibly are you using parallel boot by any chance? These parallel boot things have been known to not work with SD and someone had it with BFS as well.


Nah, rc_parallel="NO".
_________________
Who shall guard the guards?
Back to top
View user's profile Send private message
darklegion
Guru
Guru


Joined: 14 Nov 2004
Posts: 468

PostPosted: Thu Sep 24, 2009 7:00 am    Post subject: Reply with quote

I have the shutdown lockup, as well.SysRQ doesn't even work.
Back to top
View user's profile Send private message
ponciarello
Apprentice
Apprentice


Joined: 22 Jul 2008
Posts: 223
Location: beach of slack

PostPosted: Thu Sep 24, 2009 12:20 pm    Post subject: Reply with quote

had issues with burning (growisofs stopping at 22% -and being not killable- writing jaunty dvd)still with latest bfs, had to switch to cfs to solve.
only thing I have in messages is this
Code:
Sep 24 12:35:41 bernardini kernel: cdrom: This disc doesn't have any tracks I recognize!
Sep 24 12:35:41 bernardini kernel: sr 1:0:0:0: [sr0] Result: hostbyte=0x00 driverbyte=0x08
Sep 24 12:35:41 bernardini kernel: sr 1:0:0:0: [sr0] Sense Key : 0x5 [current]
Sep 24 12:35:41 bernardini kernel: sr 1:0:0:0: [sr0] ASC=0x64 ASCQ=0x0
Sep 24 12:35:41 bernardini kernel: sr 1:0:0:0: [sr0] Result: hostbyte=0x00 driverbyte=0x08
Sep 24 12:35:41 bernardini kernel: sr 1:0:0:0: [sr0] Sense Key : 0x5 [current]
Sep 24 12:35:41 bernardini kernel: sr 1:0:0:0: [sr0] ASC=0x64 ASCQ=0x0
Sep 24 12:38:31 bernardini kernel: warning: `growisofs' uses 32-bit capabilities (legacy support in use)

- dvd+rw-tools-7.1
Code:
$ dmesg |grep -i dvd                               
ata2.00: ATAPI: HL-DT-ST DVD+/-RW GT10N, A102, max UDMA/100
scsi 1:0:0:0: CD-ROM            HL-DT-ST DVD+-RW GT10N    A102 PQ: 0 ANSI: 5
sr0: scsi3-mmc drive: 24x/24x writer dvd-ram cd/rw xa/form2 cdda tray

Code:
# lspci                                                                                                                                                                                                             
00:00.0 Host bridge: Intel Corporation 4 Series Chipset DRAM Controller (rev 03)
00:01.0 PCI bridge: Intel Corporation 4 Series Chipset PCI Express Root Port (rev 03)
00:03.0 Communication controller: Intel Corporation 4 Series Chipset HECI Controller (rev 03)
00:03.2 IDE interface: Intel Corporation 4 Series Chipset PT IDER Controller (rev 03)
00:03.3 Serial controller: Intel Corporation 4 Series Chipset Serial KT Controller (rev 03)
00:19.0 Ethernet controller: Intel Corporation 82567LM-3 Gigabit Network Connection (rev 02)
00:1a.0 USB Controller: Intel Corporation 82801JD/DO (ICH10 Family) USB UHCI Controller #4 (rev 02)
00:1a.1 USB Controller: Intel Corporation 82801JD/DO (ICH10 Family) USB UHCI Controller #5 (rev 02)
00:1a.2 USB Controller: Intel Corporation 82801JD/DO (ICH10 Family) USB UHCI Controller #6 (rev 02)
00:1a.7 USB Controller: Intel Corporation 82801JD/DO (ICH10 Family) USB2 EHCI Controller #2 (rev 02)
00:1b.0 Audio device: Intel Corporation 82801JD/DO (ICH10 Family) HD Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801JD/DO (ICH10 Family) PCI Express Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation 82801JD/DO (ICH10 Family) PCI Express Port 2 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801JD/DO (ICH10 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801JD/DO (ICH10 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801JD/DO (ICH10 Family) USB UHCI Controller #3 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801JD/DO (ICH10 Family) USB2 EHCI Controller #1 (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev a2)
00:1f.0 ISA bridge: Intel Corporation 82801JDO (ICH10DO) LPC Interface Controller (rev 02)
00:1f.2 RAID bus controller: Intel Corporation 82801 SATA RAID Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801JD/DO (ICH10 Family) SMBus Controller (rev 02)
01:00.0 VGA compatible controller: ATI Technologies Inc Mobility Radeon HD 3470

this is the new config (different from my usual only by the bfs->cfs switch)

ponciarello wrote:
still some issues with scrolling pages in firefox with ati (but they works).

with cfs scrolling is smooth (fglrx 8.660) 8O
Back to top
View user's profile Send private message
Quick23t
n00b
n00b


Joined: 07 Aug 2009
Posts: 66
Location: Phoenix, AZ

PostPosted: Thu Sep 24, 2009 3:58 pm    Post subject: Reply with quote

Where can I find some reading material on the different options in the zen-tune section? I'd like to learn a bit more about the patches involved as well although I don't think it will make much difference in my rig as it spends most of it's time crunching. I maybe get a chance to sit down at it an hour a day and desktop interactivity isn't crucial. Out of all the kernels I've tested, a stripped down vanilla with deadline and no preempt turns out the best numbers folding..
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 7113
Location: Austria

PostPosted: Thu Sep 24, 2009 4:26 pm    Post subject: Reply with quote

I applied it to my 2.6.31-i915rush kernel, but KDE-4.3.1 simply wouldn't start (hangs at drive symbol).

Well, with reiserfs and i915 I had bad cards to begin with.
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Goto page Previous  1, 2, 3 ... 9, 10, 11, 12  Next
Page 10 of 12

 
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