yashsingh1/xdaforums huggingface dataset:
[Galaxy S I9000 Q&A, Help & Troubleshooting] Daneshm90:
Im confused as well, perhaps this isnt the best representation but heres wht i get upon running the 2 commands on UGJH2:

[B]adb shell free[/B]

total used free shared buffers
Mem: [B][COLOR="red"]333412 [/COLOR][/B] 310556 22856 0 2004
Swap: 0 0 0
Total: 333412 310556 22856

[B]adb shell cat /proc/meminfo[/B]

MemTotal: [COLOR="Red"][B]333412 kB[/B][/COLOR]
MemFree: 22264 kB
Buffers: 2048 kB
Cached: 31984 kB
SwapCached: 0 kB
Active: 126752 kB
Inactive: 130868 kB
Active(anon): 109324 kB
Inactive(anon): 114588 kB
Active(file): 17428 kB
Inactive(file): 16280 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 0 kB
Writeback: 0 kB
AnonPages: 223600 kB
Mapped: 29596 kB
Slab: 12744 kB
SReclaimable: 2872 kB
SUnreclaim: 9872 kB
PageTables: 15196 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 166704 kB
Committed_AS: 9766020 kB
VmallocTotal: 286720 kB
VmallocUsed: 92124 kB
VmallocChunk: 154628 kB
[Galaxy S I9000 Q&A, Help & Troubleshooting] cheetah2k:
So the SGS doesnt have himem like the N1?

This phone is so WTF....
[Galaxy S I9000 Q&A, Help & Troubleshooting] sunwee:
great hardware but screwy implementation
[Galaxy S I9000 Q&A, Help & Troubleshooting] ghost77:
Nexus 1 could not use or see its full ram also , only after they got himem kernel they could, Galaxy S is a step behind on OS and kernel updates, Froyo suppose to bring it up to date.

If you guys want to blame someone blame Samsung for taking so long to release updates and Google for poor initial release of android.
[Galaxy S I9000 Q&A, Help & Troubleshooting] NickAtNite:
Being able to use less than half of the advertised ram is pretty lame. Ram was a factor in deciding to get this phone. I like to know whatever I'm buying is future proof before I hand over $550. Although it's not really much of a concern for running eclair or froyo, I wonder how well gingerbread will perform or even Honeycomb(assuming samsung doesn't throw us out the window by then) with the limited ram.

When the galaxy tab is released, I hope someone can compare the differences and find out why it shows 400+ mb of ram and our phones only just over 330mb.
[Galaxy S I9000 Q&A, Help & Troubleshooting] rajuki:
Oh Man :eek: We are still awaiting Froyo release and you already expect Samsung to dish out Gingerbread and Honeycomb? You are asking too much from a company which is great in luring the customers in but then let them dangling for the updates and future bug fixes. I wouldn't count on Gingerbread or worse still...Honeycomb! I would so love to eat my own words but as per experience, Samsung is pretty lame at supporting their devices after their release. :)
[Galaxy S I9000 Q&A, Help & Troubleshooting] Unrealwolf:
Yep, it is the main question for me - Tab shows 435 of 512 mb, and S only 309-330 mb. Does it have a different hardware or something? That would be a shame - Galaxy S really suffers from RAM shortage, most of the lags happens when i have about 50 mb of free ram.
[Galaxy S I9000 Q&A, Help & Troubleshooting] EarlZ:
I hope the next generation of the galaxy S flagship phone will have something like 1GB fully usablef or user and probably 512mb system reserved
[Galaxy S I9000 Q&A, Help & Troubleshooting] sunwee:
could the difference in free ram between the sgs and tab be the 128mb supposed ram disk? wtf sgs need a ramdisk for?
[Galaxy S I9000 Q&A, Help & Troubleshooting] davidf:
I can't believe the on going crap about RAM, whether or not the galaxy implements its reserve poorly(more conjecture from those that are technically challenged) I would only trust any system usage requirements from someone that has access to that info).

Go back a couple of generations and you were lucky to have 32mb free ram on smart phones 1 generation back on android it was 64-128 mb ( 2009). Next gen will be in the order of 512-768 free.

At the end of the day the stupid comparisons of nexus(which will always be ahead of the curve with OS development) are just neither here nor there, so what if nexus can run 5.6 apps more than a galaxy. You bought the damn thing you are responsible if you didn't buy a device to suit your purposes not samsung.

For ****'s sake just live with what you have, or better yet stop treating the thing as if its supposed to perform like an i7 desktop.

to the original OP you have 0 idea of flash development if you have a 130mb swf not only would it make an average desktop grunt but to think it would run on any mobile device? the words that come to mind just can't be quoted in the forum

Then we have the lets compare it to windows 32 cause they warn you about limitations, another moronic comment, thats about an OS limitation you still don't get all the 3.2 usable ram as the system needs about 500mb. Windows X64 uses about 650mb and that comes out of your installed system ram but you don't have the 32 bit imposed limit.

So if RAM access improves fine, if not next gen devices will have more, but guess what this argument will continue becuase a whole generation of impatient technically challenged want it yesterday ingrates will ***** about 1gb RAM is not enough to run the 600 apps downloaded from the next gen appMarket.

Just get an iphone and stop the *****ing i'm sure they have plenty of ram and can run 1000 apps without so much as a hint of lag, if not its an end user issue because to get the correct performance the iphone must be held at the correct alignment to the earths magnet field with an error of less than 0.00000000000001 percent, which the gps will assist you in acheiving so long as you don't hold it in your left hand while the phone is in your right hand.
[Galaxy S I9000 Q&A, Help & Troubleshooting] ashwinds:
lol @ the tirade
[Galaxy S I9000 Q&A, Help & Troubleshooting] samjuan:
Chill out man, people are just talking!

What's his problem again? :D
[Galaxy S I9000 Q&A, Help & Troubleshooting] Oletros:
Well,at least it can get the correct performance, not like the Galaxy S.
[Galaxy S I9000 Q&A, Help & Troubleshooting] shad0w1989:
made my day :D
[Galaxy S I9000 Q&A, Help & Troubleshooting] Richthofen:
Samsung internal documents specify:

Memory: 4G (OneNAND) + 3G (DRAM) + 1G (OneDRAM).

User: 400MB + 1GB (for applications).

I haven't seen more than 326MB or so thou.
[Galaxy S I9000 Q&A, Help & Troubleshooting] Maddmatt:
It's probably another major software f**k-up like the RFS filesystem and mono FM radio.

I can't believe Samsung can make such awesome hardware and give it terrible software :(
[Galaxy S I9000 Q&A, Help & Troubleshooting] rajuki:
Every one seems to forget that it's Samsung's first Android device in the market. Time to market for Samsung was more important than worrying about a black hole in the RAM. It's not the developers who make these decisions, it's the Sales and Analyst guys who make these money minded calls, who themselves are probably using an iPhone, oblivious of all the RAM or GPS issues faced by a user.

Chill. :cool:
[Galaxy S I9000 Q&A, Help & Troubleshooting] Oletros:
Ein? First Android device was Galaxy more than a year ago
[Galaxy S I9000 Q&A, Help & Troubleshooting] rajuki:
True. My bad.
[Galaxy S I9000 Q&A, Help & Troubleshooting] bilboa1:
i suppose theres a hardware fault that corrupts the memory and they disabled it, i've to check in the kernel again where they start to address memory and how much sense it makes (i don't expect a "//we screwed up here, kill this memory area " ;D)

As for ram, when i start the browser and load a decent page (not 3 lines of text) it takes 50 megs of ram, so having 100megs free is not that much or a luxury, you can reach it fast.

Moreover, the flash memory (being sd or nand) are slow, thus the write and reads are heavily cached by the system into ram. the cached ram shows up as free in the UI (shows up as cache in command line of course) so it might be misleading.

Cached memory can be instantly reused by applications so it's virtually "free"

However, if you don't have the heavy disk read/write caching performance will suffer a lot.

In conclusion, having the +-100megs we'd expect would be pretty good in all cases. (theres always a large bit of memory reserved on these arm systems, but not as large as on the sgs)
[Galaxy S I9000 Q&A, Help & Troubleshooting] Aery:
Try do understand how Linux (Android) works.

The initial RAM disk (initrd) is an initial root file system that is mounted prior to when the real root file system is available. The initrd is bound to the kernel and loaded as part of the kernel boot procedure. The kernel then mounts this initrd as part of the two-stage boot process to load the modules to make the real file systems available and get at the real root file system.

The initrd contains a minimal set of directories and executables to achieve this, such as the insmod tool to install kernel modules into the kernel.

In embedded systems with no mutable storage, the

initrd is the permanent root file system

.

The zImage (compressed Kernel + Initramfs) is stored on your Phone. Every time you boot your Phone, contents of initramfs will be stored on RAM and mounted as / , so it's not permanent.

If you power off your Phone, you can use the full 512MB of RAM. *lol*

How about using a swap partition (maybe on internal SD) to extend RAM?
[Galaxy S I9000 Q&A, Help & Troubleshooting] xan:
Oh cmon, 128MB initramfs? As you can see initial ramdisk (which comes with every i9000 kernel -> kernel ~2,5MB + ramdisk ~4MB = 6,5MB) is around 4MB! There is NO WAY it could take so much RAM after decompression.

Do

the

math.
[Galaxy S I9000 Q&A, Help & Troubleshooting] darkoroje:
Buy why is tempfs on this phone about 150MB and always appears to be empty ? Seems quite a large RAM disk for a phone with 512MB memory.
[Galaxy S I9000 Q&A, Help & Troubleshooting] darkoroje:
Actually Galaxy has quite a bit less RAM available then other 512MB phones such as Nexus or Desire. I am unsure as to why this is, except that I have noticed that it has a large tempfs partition of about 150MB.

Your ranting about the iPhone is incorrect. It indeed has very little or no lag, but of course it has a different multi-tasking model. As for the GPS, iPhone GPS is fast and accurate. Please inform yourself before making such comments.
[Galaxy S I9000 Q&A, Help & Troubleshooting] bilboa1:
Sorry to sound harsh but I fear it's you who need to understand how it works.

- swap on flash is a stupid idea, flash is very slow, you'll have more memory but it will kill your flash overtime *and* be even slower than a JF1 non-lagfixed SGS when it hits the swap.

- the ramfs is seen by the kernel, only blackhole'd memory is not seen by the kernel (that's why it's called a blackhole :), so yes, it uses some of that memory but you can see it
[Galaxy S I9000 Q&A, Help & Troubleshooting] DamianGto:
Its funny. People still thinks that the free ram is what they only can use. It very likely that all graphics use the "blackhole" ram. That means you still have much free user ram left. If you could see all that ram that some phone can you still don't have more ram left after you run your programs.

If a program needs a total of 50Mb for the text and graphics it don't matter what phone you have. It still use it. But on sgs you will not se the graphics ram that the program use, only the program demand on non graphics ram(to explain it very simple ).

On the other phone you will se the total afvram the program use. But at the end of day they use the same amount of ram. On one phone you can see all on one you don't.

Many people complain about the ram,but they don't understand how it works.

That's why i did compared it with windows 32bit system. Even if you put 10GB on that system and you see it you can't still use it. But people is happy when they see all ram they have. It the same with sgs they want to see all ram even when they can't use it on program.
[Galaxy S I9000 Q&A, Help & Troubleshooting] Oletros:
Can you back those statements?

Because I don't see this behaviour on my Nexus One
[Galaxy S I9000 Q&A, Help & Troubleshooting] sunwee:
no, people are asking why desire, for eg, seem to have more usuable ram. i've seen a desire having >200mb on a fresh boot. also, why the galaxy tab, which share much similar hardware, has >400mb according to task manager. people are asking, why need such a big ramdisk.
[Galaxy S I9000 Q&A, Help & Troubleshooting] Chainfire:
This might be a redundant comment, already methioned etc, but: it's quite common for Samsung devices to have memory blackholed (for example on the 2009 Omnia family this is 256mb). I know several Samsung device that have this. Not sure why, but it isn't limited to Android. I would suppose it has something to do with their SoC setup (GPU + radio mem?)

And please keep down the bashing of eachother...
[Galaxy S I9000 Q&A, Help & Troubleshooting] Aery:
flypubec wants to run a flash application which requires more ram that he has available on his phone. so its a solution for him to run the app on his phone. if its slow or not doesn't matter in this case.

mount

rootfs on / type rootfs
tmpfs on /dev type tmpfs

df -h

tmpfs 152.0M /dev

Can't find size of rootfs mounted on /
[Galaxy S I9000 Q&A, Help & Troubleshooting] bilboa1:
tmpfs doesnt use the 152meg, it can use up to that value

one the value next to it is the used value (Filesystem Size Used Avail Use% Mounted on)

ps try: busybox df -h
[Galaxy S I9000 Q&A, Help & Troubleshooting] gshklover:
To the best of my knowledge, tmpfs doesn't preallocate the memory, so although /dev appears to have ~160MB size - this is only the maximum allocation limit (by default set to half the available memory). The differences in kernel sources were recently analyzed in a different thread on this forum - maybe the answer is there in the memory map headers.
[Galaxy S I9000 Q&A, Help & Troubleshooting] DamianGto:
Its not what you see thats important but what you use. Sgs don't show you how much graphics ram it use on a program. On others it do.

Compare the phone when you run.the program and you will see the other phone will use more ram of the ram you can see then the sgs.

because the sgs have a ram for the gpu and others use the ram you can see.
[Galaxy S I9000 Q&A, Help & Troubleshooting] r3loaded2010:
Is there a kernel dev in the house who can clear up the confusion once and for all?
[Galaxy S I9000 Q&A, Help & Troubleshooting] darkoroje:


Thanks for the infirmation
[Galaxy S I9000 Q&A, Help & Troubleshooting] darkoroje:
Yes i have looked into tempfs some more and it uses RAM dynamically. So the fact that it is 150mb in size does not matter uf the "used" % is 0. Thanks for the correction.
[Galaxy S I9000 Q&A, Help & Troubleshooting] xan:
U seem to be pretty sure what you are talking about, but sincerely I dont believe you are right about anything.

What do you refer as "graphics" ram?

(mind that Android uses software renderers to draw UI..)
[Galaxy S I9000 Q&A, Help & Troubleshooting] franklin01:
What about checking the Task Manager source (from froyo) and see how it calculate available ram and why we got only 304mo, so maybe we can find where is the *missing* ram?
[Galaxy S I9000 Q&A, Help & Troubleshooting] Oletros:
I repeat, can you back your statements?

Because my experience with SGS and Nexus is not this.
[Galaxy S I9000 Q&A, Help & Troubleshooting] spyrale:
Can somebody with two phones run this test suggested? I think it is the best way to verify his statements...thanks everybody for this useful thread.
[Galaxy S I9000 Q&A, Help & Troubleshooting] nanoo-eg:
All we know: samsung is the best at the hardware but at the software about smartphone makes patatos every time.

All they remember first OMNIA before 2 years.

Was also perfect match better than HTC-HD1 at the Display, camera, but all we buy HTC.

Samsung until now they are nubbies at the smartphones software.

For me the problem it is about the black hal no because of RFS file system.

Look a video from my Galaxy without using lag fix. Just only with MinFreeManager and Auto run killer.

http://m.youtube.com/index?desktop_uri=/&gl=US#/watch?xl=xl_blazer&v=QzHZY2v1xAM
[Galaxy S I9000 Q&A, Help & Troubleshooting] mat02:
Personally, I don't care about how much free ram I have as long as phone runs smooth, but my sgs is lagging every time memory goes under 50 megabytes (and it's just about 3-4 apps or even less).
[Galaxy S I9000 Q&A, Help & Troubleshooting] matty___:
that's because it has 576 mb ram (or was it the desire)
[Galaxy S I9000 Q&A, Help & Troubleshooting] rdy2go:
Desire with plain (without sense) ROM has about 400+ MB available for applications (free memory!!!).

Compared to 175 on Galaxy S it's >TWICE more.

The only chance for us is CyanogenMod 6.1.
[Galaxy S I9000 Q&A, Help & Troubleshooting] omrij:
The desire has 576MB, the nexus has 512MB just like the sgs.
[Galaxy S I9000 Q&A, Help & Troubleshooting] Oletros:
His statements are wrong, I have a Nexus One and a Galaxy
[Galaxy S I9000 Q&A, Help & Troubleshooting] xan:
What a "surprise".
[Galaxy S I9000 Q&A, Help & Troubleshooting] franklin01:
Not very useful...

Indeed, at phone boot there should be a parameter that allow ram we need to find it and change it.

Maybe in init.rc?
[Galaxy S I9000 Q&A, Help & Troubleshooting] spyrale:
Thanks. So, how are our chances to unlock this phantom ram other than donate a galaxy s to one of cyanogen team's member?:-))
[Galaxy S I9000 Q&A, Help & Troubleshooting] SetiroN:
Please stop talking out of your ass.

It's evident that you no idea of what you're talking about, no knowledge of how a linux kernel or basic computing enviroments work.

First: reliable as it is, it's just an hypothesis how the blackhole is being dedicated to the GPU.

Second: even if that was the case, dedicated GPU memory (which is NOT RAM, RAM and VRAM are two different things, a common PC has 2Gb RAM and 512Mb VRAM, not 2.5Gb RAM, and that remains true even if you're separating the two from the same chips, you can't advertise 512Mb of RAM if you only actually have 384Mb of RAM and 128 VRAM), can only be used for very specific graphic storage, such as the framebuffer, textures in 3D games etc, absolutely NOT to store executables' data, not even their graphical parts (except in 3D), which are always REPLICATED in an uncompressed form in the VRAM. So any non 3d-accelerated program obviously uses the same amount of memory on any HTC or SGS device.

Now I don't know if the Snapdragon (or any other SoC) stores video data in RAM or has dedicated memory, but even in the first case it's way different than having a memory portion completely unavailable, because when you're not playing 3D games (which is 99% of the time for the typical user) those 128 megs are completely wasted, and when you are (if using system ram as video memory) it's easy to free the required space up. What freakin' hell of a smartphone game uses more than 32Mb of VRAM anyway?

Please refrain from stating with such certainty facts you cannot back up.

Back to the topic, we can only hope in Cyanogenmod implementing the SGS Tab way of doing things. :(
[Galaxy S I9000 Q&A, Help & Troubleshooting] captive:
As someone stated earlier in this topic, memory map as defined in kernel sources should be the answer.

I'm quite new to Galaxy scene, but as logn as sources are available, and there is even a custom oc kernel out (with same memory mappings as stock eclair kernel), maybe the thing is a bit trickier than it seems..
[Galaxy S I9000 Q&A, Help & Troubleshooting] borchgrevink:
Do you have an ordinary desktop YT link? Thanks
[Galaxy S I9000 Q&A, Help & Troubleshooting] oswade:
you can copy the unique characters at the end of the video link onto a normal video link, like so

http://www.youtube.com/watch?v=

+

QzHZY2v1xAM

= http://www.youtube.com/watch?v=QzHZY2v1xAM

learn something new every day :)
[Galaxy S I9000 Q&A, Help & Troubleshooting] Bumble-Bee:
I really dont balive the GPU would take anywhere near that much RAM if any (as iv never really herd of a SoC that does that)

With the N1 we where able to gain some extra ram back from places like dedicated Camera memory ect.

I imagin that the "black hole memory" is being used by vital H/W. probably the modem/BB. wether or not the amount of ram is optimised (as little as possible with no faults) is another question.

We may be able to claim some back from other places .... but that all depends on how well the RAM distrebution is set up now.

If your looking for more ram get a desire HD ...... but the SGS will still be faster at GPU intensive tasks . . .
[Galaxy S I9000 Q&A, Help & Troubleshooting] RolluS:
Hello,

I'm thinking that a Galaxy S have a GPU, not as all other Droid's.

GPU need memory. Isn't some CPU memory shared with the GPU?
[Galaxy S I9000 Q&A, Help & Troubleshooting] Unrealwolf:
To all GPU-uses-memory guys: what about TAB with the same GPU and 435mb RAM visible?
[Galaxy S I9000 Q&A, Help & Troubleshooting] cryolithic:
http://en.wikipedia.org/wiki/Shared_Memory_Architecture

Know your facts before you accuse someone of talking out of their ass. It is quite common in the low end PC market to have shared memory, where part of the system ram is dedicated to video card memory, so that your 512MB becomes 384MB or whatever combination.

As a side note: I do not know if the memory is actually dedicated to the gpu, but my point above still stands.
[Galaxy S I9000 Q&A, Help & Troubleshooting] DamianGto:
Funny all is a expert on memory now,but still none can explain it.

Sgs use a gpu. The gpu needs memory. Well guess what. It use some part of your dear blackhole memory.

I don't believe at all Samsung dont use all memory.

Its always the same to many people that if they can't se it then the it not there.

I did say how you can test it. So far none have show it here. Only that i was wrong. Lol.
[Galaxy S I9000 Q&A, Help & Troubleshooting] Oletros:
Have you tested it?

Because I have a Nexus and a Galaxy and with the same programs running the Nexus has a lot more RAM available.

And are you saying that every program accounts for a small use of the video memory? Really?
[Galaxy S I9000 Q&A, Help & Troubleshooting] franklin01:
Yep the black hole could be some kind of shared video memory for the GPU but if it is this, then we should be able to tune it using an "on demand" configuration, if you use heavy vidoe app then ram will diminish to allow it to gpu but otherwise gpu will be slower and ram faster for low video app like phoning, texting etc...
[Galaxy S I9000 Q&A, Help & Troubleshooting] DamianGto:
You don't get it???

Look how much ram the program use. Not how much you have free.

If you want to show that im wrong you have to do better than this.
[Galaxy S I9000 Q&A, Help & Troubleshooting] Oletros:
LOL, do you really are saying that every program on Nexus One takes a little memory for video?
[Galaxy S I9000 Q&A, Help & Troubleshooting] neldar:
Guys, if you want to know why the SGs only have 336 and not 464 mb ram available, you should have a look into kernel sources for i9000.

hind:

compare smdkc110_fixup() in

mach-common.c, mach-smdkc110.c in arch/arm/mach-s5pc110/

edit:

Forget this... have look at .config at lines beginning with CONFIG_VIDEO_SAMSUNG_MEMSIZE_ .
[Galaxy S I9000 Q&A, Help & Troubleshooting] DamianGto:
What im saying is that you don't understand at all what the program use for memory.
[Galaxy S I9000 Q&A, Help & Troubleshooting] Oletros:
I understand what are you saying, but is totally wrong.

And if you're saying that other phones use dinamic allocation for video memory instead of a fixed size video memory, can you explain why is better the last one?
[Galaxy S I9000 Q&A, Help & Troubleshooting] xan:
Pointless discussion. No facts. Questionable knowledge... Why discuss at all?

Let some devs catch up on the topic.

Discussion about GPU/CPU memory in this place is ridiculous, especially comparing with PC solutions available today.
[Galaxy S I9000 Q&A, Help & Troubleshooting] Bumble-Bee:
aggreed . . . . seeing as we dont know where the RAM is being used there is no use speculating ......
[Galaxy S I9000 Q&A, Help & Troubleshooting] xan:
You know.. Everything is there, in the kernel source. 1 wise person to digg it is all we need ;p