https://github.com/zavierferodova/computation-challenge
Python script to fill your computer memory with processor bits word size
https://github.com/zavierferodova/computation-challenge
processor-architecture processor-maximum-access processor-memory-access
Last synced: 4 months ago
JSON representation
Python script to fill your computer memory with processor bits word size
- Host: GitHub
- URL: https://github.com/zavierferodova/computation-challenge
- Owner: zavierferodova
- Created: 2021-08-01T03:39:33.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-10-11T15:06:48.000Z (over 3 years ago)
- Last Synced: 2025-01-07T21:38:58.778Z (6 months ago)
- Topics: processor-architecture, processor-maximum-access, processor-memory-access
- Language: Python
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Computation-Challenge
This script used for testing computer processor bits word size RAM access usage.**Warning !!**
The calculation process from this script will filled much of your computer RAM memory like Processor RAM Access calculation theory.## Example
If you pass value 32 that means x86 processor architecture to `architecture_processor_computation()` function, the RAM of computer will used more than 4 GB.```python
# usememory.py....
architecture_processor_computation(32)
```The process will be like this :
- First script will count processor memory address length by passed argument.
- 232 = 4.294.967.296 bytes of memory address count.
- 1 byte of memory address are contains 8 bit of value. Then script will multiply value of 232 with 8.
- 232 ✕ 8 = 34.359.738.368 bits memory cell.
- After that script will power value of 232 ✕ 8 with 2, because 1 of bit are contains two value 1 and 0.
- (232 ✕ 8)2 = _____ This calculation will filled every single cell of memory address with value.
- Cause of every single cell memory is filled by value, the computer memory will used for about 4 GB.
- Because this script is using Python that auto allocate memory size, the result of RAM usage will take more than 4 GB.