It is no different from real time support in any Linux system, have you
looked into the real time patchset for the Linux kernel? It should
apply to the Android kernels with no problems.
> I also have a quick doubt regarding android kernel performance tools,
> are there any tools that android provides for testing time taken for
> scheduling a task, latency etc?
Again, see the real-time Linux project, they have these tools.
But most importantly, why do you want such a thing on Android? It will
reduce overall system performance, and you still have hardware latency
problems that can cause issues that are outside of the Linux kernel's
control. What are you trying to do here?
Are the current latencies that Linux has (lowest of any operating
system) somehow not sufficient for your needs? If so, where are you
seeing these latencies?
thanks,
greg k-h
What are these errors specifically?
> Regarding real time support in android, basically most of them are
> concentrating on Application base of Android, but as Android uses regular
> kernel, where it gives average performance and its not optimized for real
> time, we might see some performance issues on Android. Practically I have
> not checked any hand held devices which uses this Android and how it
> performs, but if Android kernel can be made real time to some extent, then
> we can atleast see better performance right?
No, not at all. A real-time system is slower performance than a non-realtime
one. Please read the documentation for what a real-time kernel means
for details on this.
Running the rt kernels will just slow down your android system, which is
not what I think you want it to do.
good luck,
greg k-h
> Hi,
>What are these errors specifically?
> Regarding Realtime patches, I was successfully able to patch it on normal
> linux kernel, but was not successful when I integrate it with Android
> kernel. I was able to patch and compile it, but am facing while loading the
> android system. I get some errors while loading real time modules.
No, not at all. A real-time system is slower performance than a non-realtime
> Regarding real time support in android, basically most of them are
> concentrating on Application base of Android, but as Android uses regular
> kernel, where it gives average performance and its not optimized for real
> time, we might see some performance issues on Android. Practically I have
> not checked any hand held devices which uses this Android and how it
> performs, but if Android kernel can be made real time to some extent, then
> we can atleast see better performance right?
one. Please read the documentation for what a real-time kernel means
for details on this.
Running the rt kernels will just slow down your android system, which is
not what I think you want it to do.
good luck,
greg k-h
On Thu, Oct 15, 2009 at 10:47 AM, vamsi android <vamsi....@gmail.com> wrote:
--> Regarding Android system performance, at present when we compare iphone performanceRunning the rt kernels will just slow down your android system, which is
not what I think you want it to do.
and G1 performance we can clearly see the difference. So, what I was thinking was to make
android performance better and comatialble to iphone. The speed with which applications are loaded,
and accessed are not matching with iphone!!
Running the rt kernels will just slow down your android system, which is
not what I think you want it to do.--> Regarding Android system performance, at present when we compare iphone performance
and G1 performance we can clearly see the difference. So, what I was thinking was to make
android performance better and comatialble to iphone. The speed with which applications are loaded,
and accessed are not matching with iphone!!
I suggest asking the rt kernel developers about this. But note that the
locking model in the Android core is much different than the rt kernel
patches are expecting, so problems might happen with the interaction.
>> No, not at all. A real-time system is slower performance than a
>> non-realtime
>> one. Please read the documentation for what a real-time kernel means
>> for details on this.
>
> ---> I was doing research on real time kernels and what I found is
> - Linux scheduling algorithms are not designed for real-time
> tasks.
> - context switching is not predictable, it might take longer
> - Timer resolution - 10ms and low priorty tasks still runs and it
> will make
> wait a high priority task.
> So, there are few disadvantages of linux kernel which are
> made sure in Real time OS. with this tuning of kernel,
> atleast fault tollerance should improve and performance a little
> right?
No, not really. Please, run a "real-time" kernel and look at the
performance numbers. A real-time kernel is much slower overall. This
is exactly what you do not want to have happen for a system you want to
get the best performance out of the hardware.
>> Running the rt kernels will just slow down your android system, which is
>> not what I think you want it to do.
>
> --> Regarding Android system performance, at present when we compare
> iphone performance and G1 performance we can clearly see the
> difference. So, what I was thinking was to make android
> performance better and comatialble to iphone. The speed with which
> applications are loaded, and accessed are not matching with
> iphone!!
That is because the hardware is vastly different, you are comparing two
different things here. Why would you expect the performance to be the
same?
good luck,
greg k-h
Running the rt kernels will just slow down your android system, which isnot what I think you want it to do.--> Regarding Android system performance, at present when we compare iphone performance
and G1 performance we can clearly see the difference. So, what I was thinking was to make
android performance better and comatialble to iphone. The speed with which applications are loaded,
and accessed are not matching with iphone!!
> If it was as easy as pointing a finger and saying "here optimize that," then it probably would have already been done. 90% of the effort in optimization is
> figuring out exactly what is slow and can be improved. So if you want to proceed into this -- pull out a profiler and start digging in. For example, take a UI > operation you think is too slow, figure out a way to profile what is going on during that time, then analyze the results to see what can be improved.
> And I will say, the kernel is perhaps not the meatiest place to look at for this work.
Very.
> - Does it really need attention to make Android phone reliable? i.e., real
> time?
Reliability has nothing to do with real time, please stop thinking that.
> - Does android users really face reliability kind of issues in the existing
> phones in market, if yes then up to what extinct like 1/10 or 1/1000?
Again, the real time changes have nothing to do with reliability.
This is making
less and less sense of a thread...
Please get a phone and test it out yourself if you are still curious.
good luck,
greg k-h
The way the kernel works, I do not think you will ever see this happen
today. If it does, please let us know.
> and this regards as phone gets stuck and this is
> just an example, like this there might be many other cases where we expect
> phone to behave one way but it might behave other ways where it hampers
> Androids reliability,
Again, no, it does not. Please test this for yourself to prove it.
Good luck,
greg k-h
Yes, that is ideal, for some workloads.
> So im my opinion trying to
> improve/add rt features in android is a valid thing.
Of course.
> But just saying that the system will slow down
> because of rt features is not valid.
Not true at all, adding rt features to the Linux kernel slows things down,
that is just the way real-time features work.
> There are systems that do use rt
> features today,
Yes, but they are slower than non-rt systems on the same hardware with
the same operating system, right?
> extending android capabilities to support that would definitely be
> desirable.
Then please join the main Real Time Linux kernel developer community
to work on resolving these issues. It is not an Android specific thing
at all.
Best of luck,
greg k-h
- How reliable are Android phones?
- Does it really need attention to make Android phone reliable? i.e., real time?
- Does android users really face reliability kind of issues in the existing phones in market, if yes then up to what extinct like 1/10 or 1/1000?
Greg KH wrote:
> On Mon, Oct 19, 2009 at 10:54 PM, ranjith vk <ranjit...@gmail.com> wrote:
>
>>> No, not at all. A real-time system is slower performance than a non-realtime
>>> one. Please read the documentation for what a real-time kernel means
>>> for details on this.
>>>
>>> Running the rt kernels will just slow down your android system, which is
>>> not what I think you want it to do.
>>>
>>> good luck,
>>>
>>> greg k-h
>>>
>> An ideal system is the one that gives real time guarantees and is also
>> fast.
>>
>
> Yes, that is ideal, for some workloads.
>
>
You can try to wrap service or group (radio, media) in the cgroup
interface, just extending how the init parse the init.rc file and give
or garantee bandwith or share for a particular android subsystem.
Michael