From owner-freebsd-net@freebsd.org Fri Dec 7 08:29:35 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5F5EB132E998 for ; Fri, 7 Dec 2018 08:29:35 +0000 (UTC) (envelope-from architpandeynitk@gmail.com) Received: from mail-pl1-x643.google.com (mail-pl1-x643.google.com [IPv6:2607:f8b0:4864:20::643]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 97B027DB92 for ; Fri, 7 Dec 2018 08:29:34 +0000 (UTC) (envelope-from architpandeynitk@gmail.com) Received: by mail-pl1-x643.google.com with SMTP id z23so1515027plo.0 for ; Fri, 07 Dec 2018 00:29:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:references:to:from:organization:message-id:date:user-agent :mime-version:in-reply-to:content-language; bh=reAGsqTxnizpJkVIcHDCvKrhaVPSsmcn3oThJXwCTZU=; b=OrMJKviBRPxCkwNRSN2MTFBWUsYNn8fykovvynON1OuPjYd6FbbidIoD0ePA/xujLV y+VKUk83aY/sQA4NDWzuqa161wTdJJX+/UP427CRvZ5wOfwaqUy/tjzMbwTcgqduySnb KbPJ8IFJOWDmPnus0j28P3uUTOlmmMU1JrLI5esgZvsGzhV5v+DpotvafsvjmfqQ+dag 7xXA/wJkTH3GFfy8mxSk+KG3A5REOHNvAlG8REDlu2hlXObr0zWqtnE4s01J7shVC72N +POmP1zKw0RBDBFj5UaEmEqoHjgGL51BipcfUkJf9JU4PLHakFt4NdNOJY4AaDCPExQJ EVRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:references:to:from:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language; bh=reAGsqTxnizpJkVIcHDCvKrhaVPSsmcn3oThJXwCTZU=; b=feB0MCAp5kCrdNRg/p982EXwg01iJ7+M9H/cTqX42ASAhRKyUBfZ5vb6IAjBQ7QxVs 8gDpaCeezUwkNfhiQQhSd5nwAUtfbkDFYgyTnBV5ffXXH8Zb/fR0mD/AfBp7pEV45z37 uCt9/OAu4FAJv+SIoI8s0EfpiWovFcLpn+Gxx61Dk6dWmv/ndoGsAUwl8anFUUkg4k5o gsc8eBtTl2kUYsk1yJ7MCdOmEAfXztuapIjDcWj5kNmCHe68W7Jdyu7/KuMYVziO26p4 lTmPo3bhXsNoClLOzS8YrJMQXY2lF3XBcSzq5CfzZ5myYl01/1kEAtULYjd9dC/YhbQ5 Zxtg== X-Gm-Message-State: AA+aEWaMqVVk0EjQ0LobX4mYfcEH+9B6wewgu7eV8GwMVRjSWeLVI/lG AQ8fEpWPh41FlAmASWH2n6q0p0cY X-Google-Smtp-Source: AFSGD/XjaTiWNCbBtvIlIpKXCANgmv3/Fc8r0pTq9LZgVyt/5r34uIamvgWm9kp+qOgvDCc/iRxuHQ== X-Received: by 2002:a17:902:9305:: with SMTP id bc5mr1273615plb.86.1544171373274; Fri, 07 Dec 2018 00:29:33 -0800 (PST) Received: from [192.168.0.10] ([49.206.15.213]) by smtp.gmail.com with ESMTPSA id f64sm4266201pfh.0.2018.12.07.00.29.31 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Dec 2018 00:29:32 -0800 (PST) Subject: Fwd: Help Implementing Adaptive RED ALTQ in FreeBSD References: <098cfe5d-55ac-c86e-395a-bfac85460de1@gmail.com> To: freebsd-net@freebsd.org From: Archit Pandey Organization: National Institute of Technology Surathkal X-Forwarded-Message-Id: <098cfe5d-55ac-c86e-395a-bfac85460de1@gmail.com> Message-ID: <9434400a-206e-94c8-4946-99861ea7339b@gmail.com> Date: Fri, 7 Dec 2018 13:59:30 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <098cfe5d-55ac-c86e-395a-bfac85460de1@gmail.com> Content-Language: en-US X-Rspamd-Queue-Id: 97B027DB92 X-Spamd-Result: default: False [0.96 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_NONE(0.00)[]; HAS_ORG_HEADER(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(0.99)[ip: (7.86), ipnet: 2607:f8b0::/32(-1.53), asn: 15169(-1.31), country: US(-0.09)]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-0.34)[-0.339,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-net@freebsd.org]; NEURAL_SPAM_MEDIUM(0.35)[0.352,0]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_SPAM_SHORT(0.97)[0.970,0]; RCVD_IN_DNSWL_NONE(0.00)[3.4.6.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0] X-Rspamd-Server: mx1.freebsd.org Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Dec 2018 08:29:35 -0000 Hello all! We are working on implementing Adaptive RED over existing RED code. Our changes can be found on the adaptive-red branch on our repository . While running the custom kernel, the kernel panics and shuts down. We have obtained the stack backtrace but are unable to pinpoint at where the error is arising from. The backtrace is included here. #0  doadump (textdump=) at pcpu.h:229 #1  0xffffffff80af9c1b in kern_reboot (howto=260)     at /usr/src/sys/kern/kern_shutdown.c:383 #2  0xffffffff80afa041 in vpanic (fmt=,     ap=) at /usr/src/sys/kern/kern_shutdown.c:776 #3  0xffffffff80af9e83 in panic (fmt=)     at /usr/src/sys/kern/kern_shutdown.c:707 #4  0xffffffff80faefaf in trap_fatal (frame=0xfffffe0115725640, eva=0)     at /usr/src/sys/amd64/amd64/trap.c:875 #5  0xffffffff80faf009 in trap_pfault (frame=0xfffffe0115725640, usermode=0)     at pcpu.h:229 #6  0xffffffff80fae7d7 in trap (frame=0xfffffe0115725640)     at /usr/src/sys/amd64/amd64/trap.c:415 #7  0xffffffff80f8f02c in calltrap ()     at /usr/src/sys/amd64/amd64/exception.S:231 #8  0xffffffff80b11b88 in callout_process (now=2354690236789)     at /usr/src/sys/kern/kern_timeout.c:508 #9  0xffffffff810e6b58 in handleevents (now=2354690236789, fake=0)     at /usr/src/sys/kern/kern_clocksource.c:211 #10 0xffffffff810e71c9 in timercb (et=0xffffffff81e88a30,     arg=) at /usr/src/sys/kern/kern_clocksource.c:351 #11 0xffffffff81123831 in lapic_handle_timer (frame=0xfffffe0115725860)     at /usr/src/sys/x86/x86/local_apic.c:1299 #12 0xffffffff80f90af5 in Xtimerint () at apic_vector.S:132 #13 0xffffffff8111a7f6 in acpi_cpu_c1 ()     at /usr/src/sys/x86/x86/cpu_machdep.c:144 #14 0xffffffff803cbdc7 in acpi_cpu_idle (sbt=)     at /usr/src/sys/dev/acpica/acpi_cpu.c:1150 #15 0xffffffff8111ae5f in cpu_idle_acpi (sbt=39068816)     at /usr/src/sys/x86/x86/cpu_machdep.c:452 #16 0xffffffff8111af05 in cpu_idle (busy=0)     at /usr/src/sys/x86/x86/cpu_machdep.c:605 #17 0xffffffff80b2bdf4 in sched_idletd (dummy=)     at /usr/src/sys/kern/sched_ule.c:2834 #18 0xffffffff80abd583 in fork_exit (     callout=0xffffffff80b2b8b0 , arg=0x0,     frame=0xfffffe0115725ac0) at /usr/src/sys/kern/kern_fork.c:1054 #19 0xffffffff80f8ff4e in fork_trampoline ()     at /usr/src/sys/amd64/amd64/exception.S:957 #20 0x0000000000000000 in ?? () We would really appreciate it if someone could review our code for errors, or help us in making sense out of the stack backtrace. Thanks and regards, Archit Pandey. -- Junior Year Undergraduate Department of Computer Science and Engineering National Institute of Technology Karnataka Surathkal, India