This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Possible optimization in NPTL ?


Hi all,

I've seen that everytime a new thread is created with a defined
scheduling policy, two syscalls are issued (sched_get_priority_min and
sched_get_priority_max). I was wondering if it wouldn't be worth caching
those values... I think those are constants (depending of the policy of
course), so couldn't we have a local copy (in user land) of the array
{policies/range} ?

Any thoughts?

Thanks,
Sebastien.


-------------------------------
Sebastien DECUGIS

"You may fail if you try.
You -will- fail if you don't."



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]