Is 2GB ram enough to work on C language and matlab

In summary: GB) of system memory.2GB isn't that much these days. Half of that will be used by the operating system. If you can get 4GB, you should.No, I do not know why.
  • #1
Caglar Yildiz
19
0
Hello everyone I am going to buy a computer soon. And because I don't have much money, computer s ram can be 4 GB at most and which will cause me some trouble. My question is that will 2gb ram be enough to work on MATLAB and learning to code.
 
Physics news on Phys.org
  • #2
Yeah absolutely!
 
  • Like
Likes Merlin3189
  • #3
economy said:
Yeah absolutely!
Thank you for reply
 
  • #4
2GB isn't that much these days. Half of that will be used by the operating system. If you can get 4GB, you should.
 
  • #5
I can't imagine getting good performance from a laptop with 2GB unless you are running Linux.

The system will work, but it will be swapping a lot.
 
  • #6
Caglar Yildiz said:
Hello everyone I am going to buy a computer soon. And because I don't have much money, computer s ram can be 4 GB at most and which will cause me some trouble. My question is that will 2gb ram be enough to work on MATLAB and learning to code.

Do they even still sell computers with 2GB ram? Are you buying second hand? What's your budget?

A stick of 2GB DDR3 is less than $15 USD these days, so upgrading to 4GB is cheap as chips.
 
  • #7
If you are going to run a 32-bit operating system, 2Gbyte is almost the maximum amount the OS can handle (at least that is so for Windows 32bit). No, I do not know why.
 
  • #8
Svein said:
If you are going to run a 32-bit operating system, 2Gbyte is almost the maximum amount the OS can handle (at least that is so for Windows 32bit). No, I do not know why.
Not true. It will handle 4Gigs total (including video ram)
 
  • #9
And after all the reserved parts (OS, Drivers, twice mapped graphics memory , etc) of the virtual memory space has been accounted for you have between (less than) 1 and 3 GB available for applications which is what Svein is referring to.

As for the OP question, today I personally wouldn't buy a machine with less than 12 GB of memory if I wanted it to last. I work as a programmer and my current home and work machines have 6-8 GB of memory but they are all about to be rebuilt, upgraded or replaced with machines with at least 16 GB since I run into memory limits pretty often. Even if you are on a budget I wouldn't recommend less than 8 GB of memory since memory is cheap. If you are buying a laptop see if you can buy memory on the open market instead of buying the overpriced premium options with more memory. This also goes doubly for the (few) Apple models that still can be upgraded.
 
  • #10
glappkaeft said:
And after all the reserved parts (OS, Drivers, twice mapped graphics memory , etc) of the virtual memory space has been accounted for you have between (less than) 1 and 3 GB available for applications which is what Svein is referring to.
I was not attempting to read his mind, I was responding to what he said. He said it can only handle about 2Gigs. It can handle 4.

As for the OP question, today I personally wouldn't buy a machine with less than 12 GB of memory if I wanted it to last.
I agree completely. I'm getting ready for a new build sometime soon and I'm going with 16GIGS.

I work as a programmer and my current home and work machines have 6-8 GB of memory but they are all about to be rebuilt, upgraded or replaced with machines with at least 16 GB since I run into memory limits pretty often. Even if you are on a budget I wouldn't recommend less than 8 GB of memory since memory is cheap. If you are buying a laptop see if you can buy memory on the open market instead of buying the overpriced premium options with more memory. This also goes doubly for the (few) Apple models that still can be upgraded.
Yeah, I have memory problems too, with my software development on my current 8Gig machine.
 
  • #11
phinds said:
Not true. It will handle 4Gigs total (including video ram)
Well, a 32 bit address will cover 4 Gbyte. What I said is that 32-bit Windows for some reason does not handle that amount (at least XP did not).

On the other hand, I have done a considerable amount of SW development on machines with 2Gbyte or less on both Windows and Linux machines. That includes some full-size applications and a lot of systems programming.
 
  • #12
32 bit windows XP had problems with DATA FILES that were greater than 2MB. No problems with address space.

I don't think 2GB will work for squat with windows 7 or later. As mentioned previously, I doubt you can even buy a 2GB machine with windows loaded

Although, Microsoft doesn't require it.

From Microsoft:

If you want to run Windows 7 or 10 on your PC, here's what Microsoft requires:
  • 1 gigahertz (GHz) or faster 32-bit (x86) or 64-bit (x64) processor
  • 1 gigabyte (GB) RAM (32-bit) or 2 GB RAM (64-bit)
  • 16 GB available hard disk space (32-bit) or 20 GB (64-bit)
  • DirectX 9 graphics device with WDDM 1.0 or higher driver
 
  • #14
Caglar Yildiz said:
And because I don't have much money, computer s ram can be 4 GB at most and which will cause me some trouble.

Lol. Are you serious. Money is an issue? RAM is dirt cheap these days. I've heard that the cost of RAM is some sort of measured commodity, like pork bellies or wheat. The market price isn't going to vary much no matter where you look. If you want a real Halloween horror story... It's still Halloween in Seattle at 6:50 AM, cause the sun hasn't risen. In my book, it's only the next day when the sun rises :oldsmile:

In any case, back to the horror story. I just did a new build but my previous build was in 2007. Guess how much 2 gigs of G-skill ddr2 ram cost me? Count it, $275. That's right. If that's not bad enough, 6 months after the build the computer kept capriciously restarting whenever it felt like it, as when I was in the middle of composing a paragraph. Turns out it was the $275 sticks of ram that I was bled for. In my new build I got 8 gigs of G-skill ddr3 RIPJAWS! for 40 bucks. So i'd recommend ponying up a few extra pennies now for fewer hassles down the line.
 
  • #15
Svein said:
Well, a 32 bit address will cover 4 Gbyte. What I said is that 32-bit Windows for some reason does not handle that amount (at least XP did not).

On the other hand, I have done a considerable amount of SW development on machines with 2Gbyte or less on both Windows and Linux machines. That includes some full-size applications and a lot of systems programming.
That has nothing to do with Windows, that has to do with not all addresses point to RAM. 32-bit Linux can also only use about 3.5GB.

Nobody has mentioned the real difference between Windows and *nix in terms of RAM yet. Windows uses something we call aggressive swapping, where Linux uses lazy swapping. The difference is that Linux loads things only when you tell it to, or when an application needs something. This saves RAM and allows it to run on less that powerful machines. Windows tries to make application loading faster, it loads things it thinks you might need in the future, so that when you need it, you don't have to wait for it. You trade RAM usage for startup time.
 
  • #16
RAM is typically very cheap on crucial.com, and for the really poor, maybe eBay. RAM upgrades are worth buying. I'd rather be without shoes than without enough RAM in my laptop. Priorities!
 
  • #17
harborsparrow said:
RAM is typically very cheap on crucial.com, and for the really poor, maybe eBay. RAM upgrades are worth buying. I'd rather be without shoes than without enough RAM in my laptop. Priorities!
Absolutely. I'm doing a new build and although 12GB 1600mhz would likely be plenty, I'm going with 16GB 24mhz since the i7 can make pretty good use of it.
 

1. Is 2GB RAM enough to run C language and Matlab simultaneously?

It depends on the complexity of your code and the size of your data. 2GB RAM is the minimum requirement for running both C language and Matlab, but it may not be enough for more complex tasks. It is recommended to have at least 4GB of RAM to ensure smooth performance.

2. Can I upgrade my RAM to improve the performance of C language and Matlab?

Yes, you can upgrade your RAM to improve the performance of C language and Matlab. Adding more RAM will provide your computer with more memory to process complex codes and larger datasets, resulting in faster and more efficient performance.

3. What are the consequences of running C language and Matlab with only 2GB RAM?

If your computer only has 2GB RAM and you try to run C language and Matlab, you may experience slow performance, freezing, or crashes. This is because the programs will have limited memory to work with and may not be able to handle complex tasks. It is recommended to have more RAM for optimal performance.

4. Can I decrease the amount of RAM needed for C language and Matlab?

No, you cannot decrease the amount of RAM needed for C language and Matlab. These programs have minimum system requirements and will not function properly with less RAM. However, you can optimize your code and data to reduce the amount of memory needed for processing.

5. Are there any alternatives to using 2GB RAM for C language and Matlab?

If you are unable to upgrade your RAM, you can try using cloud-based solutions or virtual machines to run C language and Matlab. These options provide access to more resources and can help improve the performance of your programs. However, they may come at an additional cost and require a stable internet connection.

Similar threads

  • MATLAB, Maple, Mathematica, LaTeX
Replies
22
Views
3K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
5
Views
1K
  • Programming and Computer Science
Replies
6
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
10
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
4
Views
11K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
6K
  • Programming and Computer Science
Replies
16
Views
1K
  • Programming and Computer Science
Replies
8
Views
832
  • MATLAB, Maple, Mathematica, LaTeX
Replies
2
Views
1K
  • Introductory Physics Homework Help
Replies
4
Views
1K
Back
Top