Stack Exchange network consists of 177 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
like the title,
if yes it can use all my RAM if needed ? or max just 2GB
Short answer: YES.
The limit of 32bit is exactly 4Gb. In case of Ubuntu even a bigger amount of ram can be used with 32bit if you are running a so-called 'PAE' kernel. The installer is smart enough to choose for you the best kernel based on the ram amount.
32-bit processors can access 4GB of RAM maximum without PAE (physical address extension). With PAE, it can access 64GB of RAM.