From owner-freebsd-hackers Fri Apr 6 13:37:22 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from cslab.csie.ntu.edu.tw (cslab.csie.ntu.edu.tw [140.112.30.25]) by hub.freebsd.org (Postfix) with ESMTP id C3A8537B422 for ; Fri, 6 Apr 2001 13:37:17 -0700 (PDT) (envelope-from r88074@csie.ntu.edu.tw) Received: from hornets (hornets.csie.ntu.edu.tw [140.112.30.134]) by cslab.csie.ntu.edu.tw (8.9.3/8.9.3) with SMTP id EAA09216 for ; Sat, 7 Apr 2001 04:37:12 +0800 (CST) Message-Id: <200104062037.EAA09216@cslab.csie.ntu.edu.tw> From: "ªL­^¶W" To: "Freebsd-Hackers" Subject: Is the solution correct ?? Date: Sat, 7 Apr 2001 04:36:45 +0800 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Importance: Normal Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Dear all : I am trying to run Web proxy server , squid , on FreeBSD using Async-io and I modified the FreeBSD source file "vfs_aio.c" , but when I run "squid" , it was killed by the SIGPROF or SIGVTALRM signal I knew the the two signal was produced by hardclock() in kern_clock() by the following coding if (CLKF_USERMODE(frame) && timevalisset(&pstats->p_timer[ITIMER_VIRTUAL].it_value) && itimerdecr(&pstats->p_timer[ITIMER_VIRTUAL], tick) == 0) { psignal(p,SIGVTALRM); } if (timevalisset(&pstats->p_timer[ITIMER_PROF].it_value) && itimerdecr(&pstats->p_timer[ITIMER_PROF], tick) == 0) { psignal(p, SIGPROF); } so I try to add time interval in the file "vfs_aio.c" to let p->p_stats->p_timer[ITIMER_VIRTUAL] > 0 and p->p_stats->p_timer[ITIMER_PROF] >0 if(p->p_stats->p_timer[ITIMER_VIRTUAL].it_value.tv_sec < 50) { getmicrouptime(&ctv); timevaladd(&aitv.it_value, &ctv); p->p_stats->p_timer[ITIMER_VIRTUAL]=aitv; } if(p->p_stats->p_timer[ITIMER_PROF].it_value.tv_sec < 50) { getmicrouptime(&ctv); timevaladd(&aitv.it_value, &ctv); p->p_stats->p_timer[ITIMER_PROF]=aitv; } Is the solution correct ? how many timeval should I add ?? Thanks in Advance Richard_Lin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message