ram

How much RAM do I need to execute x=10**10**10 in Python?

How much RAM do I need to execute x=10**10**10 in Python? Question: By timing the execution of x=10**10**n for n up to 8, I estimate that about 4.3 days would be needed to execute x=10**10**10 on my system. What I need to know, however, is whether I would have enough RAM. (My 64-bit Windows system …

Total answers: 1

Overflow while using ReadWriteMemory

Overflow while using ReadWriteMemory Question: I’m trying to fetch information from a hex editor. But ReadWriteMemory gives me an error about "<class ‘OverflowError’>: int too long to convert" Here is my code: from ReadWriteMemory import ReadWriteMemory base_address = 0x7FF6D60A0000 static_address_offset = 0x0074DE40 pointer_static_address = base_address + static_address_offset offsets = [0x08, 0x08, 0xB0, 0x08, 0x278, 0x10, …

Total answers: 1

Reading and processing multiple csv files with limited RAM in Python

Reading and processing multiple csv files with limited RAM in Python Question: I need to read thousands of csv files and output them as a single csv file in Python. Each of the original files will be used to create single row in the final output with columns being some operation on the rows of …

Total answers: 1

Google Colaboratory: misleading information about its GPU (only 5% RAM available to some users)

Google Colaboratory: misleading information about its GPU (only 5% RAM available to some users) Question: update: this question is related to Google Colab’s “Notebook settings: Hardware accelerator: GPU”. This question was written before the “TPU” option was added. Reading multiple excited announcements about Google Colaboratory providing free Tesla K80 GPU, I tried to run fast.ai …

Total answers: 9

Limit RAM usage to python program

Limit RAM usage to python program Question: I’m trying to limit the RAM usage from a Python program to half so it doesn’t totally freezes when all the RAM is used, for this I’m using the following code which is not working and my laptop is still freezing: import sys import resource def memory_limit(): rsrc …

Total answers: 3

Buildling boxplots incrementally from large datasets

Buildling boxplots incrementally from large datasets Question: Let s say i have 4 files saved on my computer as .npz files : W,X,Y and Z. Let s assume that my computer can not endure to load at the same time more than one of them in term of RAM consumption. How can I be able …

Total answers: 3

Read file in chunks – RAM-usage, reading strings from binary files

Read file in chunks – RAM-usage, reading strings from binary files Question: I’d like to understand the difference in RAM-usage of this methods when reading a large file in python. Version 1, found here on stackoverflow: def read_in_chunks(file_object, chunk_size=1024): while True: data = file_object.read(chunk_size) if not data: break yield data f = open(file, ‘rb’) for …

Total answers: 4

How to get current CPU and RAM usage in Python?

How to get current CPU and RAM usage in Python? Question: How can I get the current system status (current CPU, RAM, free disk space, etc.) in Python? Ideally, it would work for both Unix and Windows platforms. There seems to be a few possible ways of extracting that from my search: Using a library …

Total answers: 21