Working with UNIX Process 6/7 Chapter

Sponsored · SiteGround - Reliable hosting with speed, security, and support you can count on. →

Working with UNIX Process 6/7 Chapter

Yuta Totz

March 05, 2016

Annual Pro sale · Save $30

Have presentations of your own?

Share with private links, password protection, and more control over your work.

Transcript

20 slides
  1. ࣮༻ྫ • γεςϜϦιʔεͷ੍ݶͷมߋ͕ඞཁʹͳΔϓϩάϥϜ͸͋Μ·ͳ͍…ɻ͚Ͳಛ ผͳ༻్ͷπʔϧͰ͸ͱͯ΋ॏཁʹͳΔ • ex. ϓϩηε͕ಉ࣌ʹ਺ઍͷωοτϫʔΫίωΫγϣϯΛѻ͏ඞཁ͕͋Δ • httpύϑΥʔϚϯεπʔϧͷhttperf(1) •

    httperf —hog —server www —num-conn 5000 • => ಉ࣌ʹ5000ͷίωΫγϣϯΛ࡞੒͠Α͏ͱ͢Δ • ιϑτϦϛοτ͕σϑΥϧτ஋ͩͱ໌Β͔ʹ·͍ͣͷͰɺhttperf(1)͸࣮ߦલʹࣗ ਎ͷιϑτϦϛοτΛҾ্͖͛Δ
  2. ͜Εͬͯϋογϡʁ • ϋογϡΦϒδΣΫτͰ͸ͳ͍ (merge͕ͳ͍ͱ ͔) => ϋογϡϥΠΫʹΞΫηεͰ͖ΔAPI͕༻ ҙ͞Ε͍ͯΔ Process.setrlimit(:NOFILE, 4096)

    p Process.getrlimit(:NOFILE) => [4096, 4096] puts ENV[‘EDITOR’] => vim puts ENV.has_key?(‘PATH’) => true puts ENV.is_a?(Hash) => false

More Decks by Yuta Totz

Other Decks in Programming