Giter Club home page Giter Club logo

c10kpp's Introduction

Introduction

The goal of that project is to provide a research on network server programming approaches to solve the c10k problem (c100k...cNk as well). The programming approaches we will inspect:

  • Native thread per socket (synchronous handling)
  • State machine based on epoll (native thread per core, asynchronous handling)
  • Green thread per socket (codenames: Coroutine/Fiber) (native thread per core, synchronous handling (asynchronous under the hood))

Dependencies

  • gcc 4.7 ++ (or anything else that support rudimentary C++11)
  • boost 1.49
  • autoconf and automake

Building

  1. Run autoreconf -i to create the configure script.
  2. Optional: Create a directory for the specific variant, e.g.: mkdir build_noaffinity. Change into it.
  3. Run configure from the source dir. For the example in 2 above, run ../configure --disable-affinity.
  4. make.

Environment

Sysctl:

net.ipv4.tcp_tw_recycle = 1
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_fin_timeout = 1
net.ipv4.tcp_timestamps = 1
net.ipv4.tcp_syncookies = 0
net.ipv4.ip_local_port_range = 1024 65535
kernel.pid_max = 4194303
kernel.threads-max = 4194303
vm.max_map_count = 4194303

change the maximum of open files:

$ ulimit -n 200000

License

Licensed under the terms and conditions of the GNU General Public License (GPL) version 2, or, at your discretion, any later version.

Authors

Uri Shamay ([email protected])

Shachar Shemesh ([email protected])

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.