Linux-kernel mailing list archive 1999-23,: Re: New schedule() and semaphore implementation ...

# Re: New schedule() and semaphore implementation ...

Davide Libenzi (davidel@maticad.it)
Fri, 11 Jun 1999 18:43:42 +0200

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Fagerburg, Eric D: "RE: init failing in 2.3.6"
- Previous message: Mark Hanson: "2.2.7 Oops on SMP machine in __free_page() while loading executable"
- Maybe in reply to: Davide Libenzi: "New schedule() and semaphore implementation ..."

Hi andrea,

>Apologies, I overlooked your patch.

I'm happy !!

>I suggest also to search on the list a patch that avoids recalculating
>counters on all tasks. It allows you to recalculate the counters only on
>the runqueue. So you could run gds_remove_task();gds_add_task()
>unconditionally in gds_switch().

I don't know if this is correct because of the new version of "up".
With the actual code waiting processes counter were incremented
taking a chance to exit from wait queue.
Anyway I agree with the fact that it will be faster.

>I suggest you also to move the
>slot-fields near the runqueue fields, so you may get them on the same
>cacheline while inserting/removing the task from the runqueue.

100 % Agree.

Cheers,
Davide.

    --
    "Debian, the Freedom in Freedom"

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.rutgers.edu
    Please read the FAQ at http://www.tux.org/lkml/

- Next message: Fagerburg, Eric D: "RE: init failing in 2.3.6"
- Previous message: Mark Hanson: "2.2.7 Oops on SMP machine in __free_page() while loading executable"
- Maybe in reply to: Davide Libenzi: "New schedule() and semaphore implementation ..."