Questions tagged [memory-size]

47 questions
128
votes
13 answers

How can I find out the total physical memory (RAM) of my linux box suitable to be parsed by a shell script?

I'm typing a shell script to find out the total physical memory in some RHEL linux boxes. First of all I want to stress that I'm interested in the total physical memory recognized by kernel, not just the available memory. Therefore, please, avoid…
Jdamian
  • 2,839
  • 2
  • 14
  • 21
15
votes
2 answers

Python: How to estimate / calculate memory footprint of data structures?

What's a good way to estimate the memory footprint of an object? Conversely, what's a good way to measure the footprint? For example, say I have a dictionary whose values are lists of integer,float tuples: d['key'] = [ (1131, 3.11e18), (9813,…
Parand
  • 91,328
  • 43
  • 147
  • 182
7
votes
3 answers

How to calculate the size of libraries that is added as a dependency in the Android project

I am working in a project where I am using multiple libaries like google play service, retrofit, gson, glide, twitter and facebook sdk. So what I want to know the exact size of each library occupies in my application. Kindly please help me whether…
Chandru
  • 5,324
  • 9
  • 42
  • 76
7
votes
1 answer

Cache eviction from L1 cache on L2 eviction

I have a basic question about the policy followed by the memory system. Consider a core with private L1 and L2 caches. After L2 cache we have a bus on which the coherence traffic runs. Now, if a cache line for address(X) is evicted from the L2…
prathmesh.kallurkar
  • 4,930
  • 8
  • 32
  • 48
5
votes
2 answers

How many memory the bit-vector using in sbcl?

How many memory the bit-vector using in sbcl? Does per bit spend 1 bit memory? Does per bit spend 1 byte memory? Does per bit spend 1 word memory?
1.618
  • 779
  • 1
  • 10
  • 16
4
votes
0 answers

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory while building an angular 8 project

I upgraded my angular project from version 4 to version 8. when i run command npm start using "start": "node --max_old_space_size=16000 ./node_modules/@angular/cli/bin/ng serve --proxy-config proxy.conf.json" i got successful result but when i do…
4
votes
1 answer

Simple PDO query returns memory-size error

I tried to make a simple pdo request to select all values of a table stmt = $this->query($query); } ?> But when I call it like $db->query('SELECT * FROM teams'); $teams = $db->resultset();…
sydev
  • 115
  • 1
  • 8
3
votes
3 answers

Allowed memory size exhausted in PHP for loop

I'm facing a fatal error while I'm trying to manipulate a huge array of arrays in PHP and return the result as a response of an HTTP POST request: Allowed memory size of 536870912 bytes exhausted I have already tried to set…
UgoL
  • 743
  • 1
  • 8
  • 26
3
votes
1 answer

How to calculate the size of an object in memory using Silverlight?

How to calculate the size of an object in memory using Silverlight?
twesh
3
votes
1 answer

Retrieving the numer of bytes consumed by a SciPy sparse matrix

Let's say I want to monitor the memory occupied by my SciPy sparse matrix mat. In NumPy I would have exploited the nbytes attribute, but in SciPy it seems there is nothing like that. How can I retrieve this information?
aretor
  • 968
  • 1
  • 10
  • 29
3
votes
5 answers

lowest and highest memory address in c?

Is there a way to print out the lowest and highest memory address that an Operating System can address in C?
user188276
2
votes
4 answers

Fatal error: Allowed memory size exhausted while looping through a 14 element long single-character-array

I have a simple string. I need to produce an output Array such that the order of every 2 consecutive characters is reversed. Input string is 14f05000034e69 and I need the following output Array [4, 1, 0, f, 0, 5, 0, 0, 4, 3, 6, e, 9, 6]. Here is…
Shy
  • 482
  • 5
  • 16
2
votes
1 answer

how do you estimate RAM size for application server?

I'm wondering what an appropriate way to estimate RAM size for application server is. I'm planning to build an application server with Apache as Web server and Django as application framework. databases exist on different nodes. at first, I thought…
2
votes
6 answers

Programatically calculate the size of a value type

I'm writing a unit test for a method that packs boolean values into a byte. The various bit locations are determined by the value of an enum, which only has 5 values right now, but it's conceivable (though extremely unlikely) that this number could…
Parker
  • 7,270
  • 3
  • 24
  • 21
2
votes
3 answers

Finding memory allocation of Ruby Arrays

I wanted to find out the memory consumed (in bytes) by data types. I called size method on an integer. Since I am running a 64 bit machine, it returned 8. 1.size # => 8 Similarly, for strings and arrays, it returned 1 byte per character/integer. …
Sahil
  • 504
  • 5
  • 9
1
2 3 4