نمایش نتایج: از شماره 1 تا 2 از مجموع 2

موضوع: diskd

  
  1. #1
    نام حقيقي: Hooman

    عضو عادی شناسه تصویری hmn566
    تاریخ عضویت
    Apr 2004
    محل سکونت
    Tehran
    نوشته
    639
    سپاسگزاری شده
    107
    سپاسگزاری کرده
    33

    diskd

    با سلام به همگی دوستان
    در قسمت Cache_dir با فرمت diskd میزان Q1 و Q2 بر چه اساسی محاسبه میشه؟
    اینکه کدوم بزرگتر باشن مهمه؟
    و اینکه 16 256 و 16 64 فرمول خاصی برای محاسبه داره؟
    و آیا نسبت به aufs مزیت زیادی داره؟


    ویرایش توسط hmn566 : 2007-09-24 در ساعت 11:42 PM

  2. #2
    نام حقيقي: Alireza HBB

    عضو غیر فعال شناسه تصویری Alux
    تاریخ عضویت
    Jan 2006
    محل سکونت
    Tehran
    نوشته
    1,492
    سپاسگزاری شده
    286
    سپاسگزاری کرده
    399
    diskd (short for disk daemons) is similar to aufs in that disk I/Os are executed by external
    processes. Unlike aufs, however, diskd doesn't use threads. Instead, inter-process
    communication occurs via message queues and shared memory.
    Message queues are a standard feature of modern Unix operating systems. They were invented
    many years ago in AT&T's Unix System V, Release 1. The messages passed between processes
    on these queues are relatively small: 32-40 bytes. Each diskd process uses one queue for
    receiving requests from Squid and another queue for transmitting results back.


    Squid creates one diskd process for each cache_dir. This is different from aufs, which uses a
    large pool of threads for all cache_dirs

    Squid waits for the diskd processes to catch up if one of the queues exceeds a certain
    threshold. The default value is 64 outstanding messages. If a diskd process gets this far behind,
    Squid "sleeps" a small amount of time and waits for it to complete some of the pending
    operations. This essentially puts Squid into a blocking I/O mode. It also makes more CPU time
    available to the diskd processes. You can configure this threshold by specifying a value for the
    Q2 parameter on a cache_dir line:

    cache_dir diskd /cache0 7000 16 256 Q2=50

    Squid stops asking the diskd process to open files if the number of outstanding
    operations reaches another threshold. Here, the default value is 72 messages. If Squid would
    like to open a disk file for reading or writing, but the selected cache_dir has too many pending
    operations, the open request fails internally. When trying to open a file for reading, this causes
    a cache miss instead of a cache hit. When opening files for writing, it prevents Squid from
    storing a cachable response. In both cases the user still receives a valid response. The only real
    effect is that Squid's hit ratio decreases. This threshold is configurable with the Q1 parameter:

    cache_dir diskd /cache0 7000 16 256 Q1=60 Q2=50

    Note that in some versions of Squid, the Q1 and Q2 parameters are mixed-up in the default
    configuration file. For optimal performance, Q1 should be greater than Q2.




کلمات کلیدی در جستجوها:

هیچ کلمه ای ثبت نشده است.

برچسب برای این موضوع

مجوز های ارسال و ویرایش

  • شما نمی توانید موضوع جدید ارسال کنید
  • شما نمی توانید به پست ها پاسخ دهید
  • شما نمی توانید فایل پیوست ضمیمه کنید
  • شما نمی توانید پست های خود را ویرایش کنید
  •