Blocked from accessing more memory in R despite having available memory in my system [duplicate] - windows

This question already has answers here:
Increasing (or decreasing) the memory available to R processes
(7 answers)
Closed 8 years ago.
I am trying to access more memory using code I found in stackoverflow (Increasing (or decreasing) the memory available to R processes). However, I get the following error which I haven't been able to resolve:
memory.limit(10000)
Error in memory.limit(10000) :
don't be silly!: your machine has a 4Gb address limit
R is telling me that I have a 4gb address limit (despite the fact that I'm on a 64bit OS with 16gb of RAM). Anyone know how to get around this?
Windows OS: Windows 7 Enterprise, Intel(R) Core(TM) i7-2600 CPY #3.40GHz
Installed Memory (RAM): 16.0GB
System type: 64 bit OS
R Version: 3.0.0
RStudio Version: 0.97.551

I never used R, but with a quick search I came across memory.limit()documentation (here)
I quote :
memory.limit(size = NA)
size : numeric. If NA report the memory size, otherwise request a new limit, in Mb.
10.000 MB = 10 GB, hence the error.
About the 64-bit problem, it may come from R itself (depending on the virtual machine version I guess).

Related

How can a 32 bit cpu transfer 64 or even 128 bits in parallel on a data bus? [duplicate]

This question already has answers here:
Data bus width and word size
(2 answers)
How do we determine if a processor is 8-bit; 16-bit or 32-bit
(8 answers)
word size and data bus
(2 answers)
Closed 2 years ago.
Well, I just recently started reading the book: Structured Computer Organization, By Andrew Tannerbaun, and everthing was clear to me until I reached this sentence on ch.2: "Finally, many computers can transfer 64 or 128 bits in parallel on a single bus cycle, even on 32-bit machines". The problem with this is that I cannot picture how something like this would work and, as far as I know, a cpu has a single data bus.
If there were for example, a 32bit CPU in a 64bit system (64bit data bus), how would the CPU do to transfer the 64bits "in parallel" on the same bus cycle?

How to find number of physical core in a Windows system with c++ code [duplicate]

This question already has answers here:
How to get the number of actual cores on the cpu on windows? [duplicate]
(2 answers)
How to Detect the Number of Physical Processors / Cores on Windows, Mac and Linux
(14 answers)
Closed 5 years ago.
I tried this but it will shows number of logical processors only
SYSTEM_INFO sysinfo;
GetSystemInfo(&sysinfo);
int numCPU = sysinfo.dwNumberOfProcessors;
From https://msdn.microsoft.com/en-us/library/windows/desktop/ms724958(v=vs.85).aspx:
Note For information about the physical processors shared by logical processors, call GetLogicalProcessorInformationEx with the RelationshipType parameter set to RelationProcessorPackage (3).
You can get the related hardware of the logical processors, and infer how many physical processors are there

How to Resolve this Out of Memory Issue for a Small Variable in Matlab?

I am running a 32-bit version of Matlab R2013a on my computer (4GB RAM, and 32-bit Windows 7).
I have dataset (~ 60 MB) and I want to read it using
ds = dataset('File', myFile, 'Delimiter', ',');
And each time I face Out of Memory error. Theoretically, I should be able to use 2GB of RAM, so there should be no problem reading such small files.
Here is what I got when typed memory
Maximum possible array: 36 MB (3.775e+07 bytes) *
Memory available for all arrays: 421 MB (4.414e+08 bytes) **
Memory used by MATLAB: 474 MB (4.969e+08 bytes)
Physical Memory (RAM): 3317 MB (3.478e+09 bytes)
* Limited by contiguous virtual address space available.
** Limited by virtual address space available.
I followed every instructions I found (this is not a new issue), but for my case it seems rather weird, because I cannot run a simple program now.
System: Windows 7 32 bit
Matlab: R2013a
RAM: 4 GB
Clearly your issue is right here.
Maximum possible array: 36 MB (3.775e+07 bytes) *
You are either using a lot of memory in your system and/or you have a very low swap space.

to write 10,000 x 5,000 term document matrix using 'Write Excel' operator

I am using rapid miner studio 6.0.007 with 8 GB ram trial license on windows 7 sp1. I have Core i7 with 8 GB RAM and 256GB SSD 840 PRO. I want to write term document matrix 5,000 columns and 10,000 rows. But I am unable to write because when using write excel operator memory utilization becomes maximum i.e. 98% of my 8 GB ram and after many hours I got the error message related with less available memory. Is there some optimal setting required in Rapid miner?
The trial license is limited to a small amount of memory; 1Gb I believe. You can write the output as a CSV file which might require less memory.
Alternatively, you can use the last 5.n community version which is not memory limited.

Will windows XP 32-Bit OS read 8GB of RAM?

Am using Windows XP 32-Bit Operating System with Intel Xeon processor. My current RAM memory is 4GB and 320GB of hard disk. And I feel that my computer is very slow. So if I upgrade the RAM memory to 8GB, will my computer handle the upgrade?
I probably do not think so. 32 bit OS can only support 4 GB of memory.
Calculation example:
2 ^ 32 bytes = 4 GB.
If you want more than 4 gb to use, then use a 64 bit OS
No,friend your computer will not use 8GB ram. At first you will have to know what is ram,
ram is a device that store information for temporarily, and share that data with very speedy and less consuming time.In 32 bit OS ram can hold data of 2 ^ 32 bytes = 4 GB if u have 8 gb ram, you 32 bit system can not use it,
Think about a car garage which is constructed for 4 cars, if you have 10 car you can't put all of your in the garage, so your 32 bit OS can not hold information more than 4gb ram, like car garage.Hope it will help you to get your answer
Theoretically it could: http://en.wikipedia.org/wiki/Physical_Address_Extension, but in XP there is no support for this.
Upgrade your os to 64 bit to use 8gb ram.
Just wondering, why did you put windows xp 32 bit on your computer? it could be x64 edition. Intel xeon processors are 64 BIT, not 32 bit.

Resources