Giter VIP home page Giter VIP logo

dosp's Introduction

COP5615 - Distrbuted Operating System Principles

Project 1

Member UFID
Venkata Sai Bhargav Bathini 12796591
Srikar Chowdary Kantamani 69473991

Overview

The goal of this project is to build a mining system that can find strings which when encoded using SHA-256 hashing function contains "n" number of leading zeroes where n is specified as input. This system as the value of n grows becomes computationally intensive and this is efficiently handled by using Actor Model in Erlang where the work or process is scaled across various threads. This increases the utilization of he CPU and thus efficiency of the mining system.

Execution Steps

erl -name <username>@<IPAddress> #Creating a node

c(mining.erl). #Compile Erl file

mining.begin_erlserver(). #Starting a server in the node

mining:calculator('<username>@<IPAddress>',<workunits>). #Running the Miner

Variables

 username: Your sytems username
 IPAddress: Your systems Ip address
 worknits: Desired number of workers

Size of the Work Unit

Actors CPU Time(ms) Real Time(ms) Ratio( CPU time / Realtime)
5 596955 302105 1.97598
100 1474999 201937 7.30425
1000 18569145 223372 8.31216

Specification:

Hashing performed on a string size of 500 and finding hashes with 4 leading zeroes.

Observation

From our test we found our code works best with 1000 actors with CPU to Real time ratio of 8.31216. So we wll further perform tests using 1000 actors on a string size of 150 to find a coin with highest number of leading zeroes.

Results (Input: 4)

Executuon

output

Running Time stats

CPU time: 18569145 ms Real Time: 223372 Ratio( CPU to Real time) : 8.31216

Coins with most number of zeroes

We found a bitcoin with 7 leading zeroes with 1000 workers on a string of length 150.

max_number_of_zeroes

Largest number of working machines

The largest number of working machines we were able to test our code is 8

dosp's People

Contributors

bhargavbvs avatar srikar58 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.