Author Topic: Kernel memory configuration  (Read 10054 times)

Offline maruno

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 20
  • Karma: 1
    • View Profile
Kernel memory configuration
« on: May 01, 2011, 03:54:52 PM »
The zero has 256 MB of RAM however the phone tells me it only has 162 MB of RAM available running CyanogenMod 7.0.2. (Bot through Android-UI and /proc/meminfo) Curious as I am I went looking why it is so and how Android works with memory. :)

By looking at the bootlog the kernel starts off with 212 MB of RAM and ends up giving 162MB as system RAM. I found the difference, 50 MB, is used for various specialised tasks for which contiguous RAM is needed like the DSP. (PMEM)

What I have not been able to find out is why it starts of with 212 MB? The kernel uses 212MB because it is limited by kernel commandline (mem=212M), but I can't find why.

I hope someone can help in my curiosity. :)

P.S. Don't know if this is the right section, feel free to move it if it's incorrect.

mmo_gpf

  • Guest
Re: Kernel memory configuration
« Reply #1 on: May 02, 2011, 12:11:25 AM »
Dear Maruno,

I would be great if you ask this in CyanogenMod forum. May be you could open an issue in order to ask about this here: http://code.google.com/p/cyanogenmod/issues/list

There is one possibility that Ricardo has missed something with CM7 compilation and he can fix it in next builts...

Kind regards

mmo_gpf

  • Guest
Re: Kernel memory configuration
« Reply #2 on: May 03, 2011, 08:57:31 AM »
I hope someone can help in my curiosity. :)

P.S. Don't know if this is the right section, feel free to move it if it's incorrect.

Dear Maruno,

Have you been able to find a right answer about this?

If not, I encourage you to create an issue in order to ask about this
There is one possibility that Ricardo has missed something with CM7 compilation and he can fix it in next builts...

Kind regards

Offline maruno

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 20
  • Karma: 1
    • View Profile
Re: Kernel memory configuration
« Reply #3 on: May 03, 2011, 03:38:06 PM »
I hope someone can help in my curiosity. :)

P.S. Don't know if this is the right section, feel free to move it if it's incorrect.

Dear Maruno,

Have you been able to find a right answer about this?

If not, I encourage you to create an issue in order to ask about this
There is one possibility that Ricardo has missed something with CM7 compilation and he can fix it in next builts...

Kind regards

No, I haven't had the time to look into it further. I don't know if I should create an issue for this? Might be that kernel commandline is a decision because of something. I could test myself without the kernel parameter, but I don't want to break my device right now, maybe I'll look at it later.

I might make a account on the CyanogenMod-forums and ask there but the place looks quite dead compared to here. :P Do you think it valids a new issue?

mmo_gpf

  • Guest
Re: Kernel memory configuration
« Reply #4 on: May 03, 2011, 11:42:28 PM »
I might make a account on the CyanogenMod-forums and ask there but the place looks quite dead compared to here. :P Do you think it valids a new issue?

First of all, I think it's better to open an issue rather than ZERO forum in CM 'cause you're right, It's dead.
An Issue in the issue tracker does NOT mean always a bug. It is just a ticket in order to communicate with developers.
Might be there is something missing with the kernel and you can trigger the info to solve it. In the worst case, if you're wrong, Ricardo will tell you, close the issue and nothing more.

So, in my humble opinion, the best thing is to open an issue to answer it.

Kind regards

Offline maruno

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 20
  • Karma: 1
    • View Profile
Re: Kernel memory configuration
« Reply #5 on: May 04, 2011, 03:52:29 PM »
I've opened issue 3664

mmo_gpf

  • Guest
Re: Kernel memory configuration
« Reply #6 on: May 05, 2011, 12:10:00 AM »
I've opened issue 3664

Thank you very much.
We have had an answer from developers. The question is that they think it is not the right place. They say that the best place is the CM forum .... although I think it's a little dead.

As it was my idea, I have apologized there explaining why we thought it was the best place.

Anyway, thants again for your trial.

Kind regards

mmo_gpf

  • Guest
Re: Kernel memory configuration
« Reply #7 on: May 05, 2011, 12:14:07 AM »
I've opened the thread in the CM forum.
http://forum.cyanogenmod.com/topic/22626-kernel-memory-limited-to-212mb-on-zero/

Thanks again to maruno for investigating this issue

Sorry for any inconveniences

Offline maruno

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 20
  • Karma: 1
    • View Profile
Re: Kernel memory configuration
« Reply #8 on: May 05, 2011, 10:56:15 AM »
Oh, it's no inconvenience. :) We'll see what happens here or at the CyanogenMod-forums. :)

Offline upuaut

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 59
  • Karma: 2
    • View Profile
Re: Kernel memory configuration
« Reply #9 on: May 19, 2011, 03:39:27 AM »
There doesn't seem to be any response in the cyanogenmod forum. What would be the best way of contacting Ricardo Cerqueira?

mmo_gpf

  • Guest
Re: Kernel memory configuration
« Reply #10 on: May 19, 2011, 04:24:40 AM »
There doesn't seem to be any response in the cyanogenmod forum. What would be the best way of contacting Ricardo Cerqueira?

I've told him to see the forum threat by twitter.
Sorry it's in spanish :)

https://twitter.com/#!/mmo_tuiter/status/71173691001683968

"Querido @CM_arcee podrías echarle un vistazo a esto: http://bit.ly/iiOFaN ..hay dudas de porqué el kernel del ZERO limita la memoria a 212MB"

I hope he will answer!!!

Regards

Offline kedder

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
  • Karma: 0
    • View Profile
Re: Kernel memory configuration
« Reply #11 on: May 22, 2011, 01:47:46 PM »
The zero has 256 MB of RAM however the phone tells me it only has 162 MB of RAM available running CyanogenMod 7.0.2.

Actually, the above is true for stock rom, supplied with Zero, too:


# cat /proc/meminfo
MemTotal:         165632 kB
...
# cat /proc/cmdline
mem=212M console=ttyMSM2 androidboot.hardware=zero androidboot.battchg_pause=true androidboot.serialno androidboot.baseband


So, maybe geeksphone developers could comment on this too?
« Last Edit: May 22, 2011, 01:52:19 PM by kedder »

mmo_gpf

  • Guest
Re: Kernel memory configuration
« Reply #12 on: May 22, 2011, 11:52:27 PM »
The zero has 256 MB of RAM however the phone tells me it only has 162 MB of RAM available running CyanogenMod 7.0.2.

Actually, the above is true for stock rom, supplied with Zero, too:


# cat /proc/meminfo
MemTotal:         165632 kB
...
# cat /proc/cmdline
mem=212M console=ttyMSM2 androidboot.hardware=zero androidboot.battchg_pause=true androidboot.serialno androidboot.baseband


So, maybe geeksphone developers could comment on this too?

The Stock Rom is ALSO developed  by Ricardo :) :) :) :) :) :)

Regards

Offline Javier (gp)

  • Administrator
  • Top Member
  • *****
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3567
  • Karma: 71
    • View Profile
Re: Kernel memory configuration
« Reply #13 on: May 23, 2011, 12:01:04 AM »
The stock rom is NOT developed by Ricardo. Ricardo has helped to finetune its latest details ;)

Offline upuaut

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 59
  • Karma: 2
    • View Profile
Re: Kernel memory configuration
« Reply #14 on: May 23, 2011, 12:32:51 AM »
Just curious: where does the limitation to 212M come from then? Is there a technical reason for not using the remaining memory?