Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030328AbVLVVx2 (ORCPT ); Thu, 22 Dec 2005 16:53:28 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1030329AbVLVVx1 (ORCPT ); Thu, 22 Dec 2005 16:53:27 -0500 Received: from spirit.analogic.com ([204.178.40.4]:52228 "EHLO spirit.analogic.com") by vger.kernel.org with ESMTP id S1030328AbVLVVx1 (ORCPT ); Thu, 22 Dec 2005 16:53:27 -0500 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----_=_NextPart_001_01C60742.22387880" X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 X-OriginalArrivalTime: 22 Dec 2005 21:53:25.0899 (UTC) FILETIME=[22C1A5B0:01C60742] Content-class: urn:content-classes:message Subject: 4k stacks Date: Thu, 22 Dec 2005 16:53:25 -0500 Message-ID: X-MS-Has-Attach: yes X-MS-TNEF-Correlator: Thread-Topic: 4k stacks Thread-Index: AcYHQiLLvC9XcxLyQVa43x7ALDUpUg== From: "linux-os \(Dick Johnson\)" To: "Linux kernel" Reply-To: "linux-os \(Dick Johnson\)" Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 8067 Lines: 144 This is a multi-part message in MIME format. ------_=_NextPart_001_01C60742.22387880 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Yesterday I sent a patch to add stack-poison so the stack usage could be observed. Today I wrote a small program and tested the stack usage. Both the program and the patch is attached. The result is: Offset : 2ec8f000 Available Stack bytes =3D 3104 Offset : 2ecb1000 Available Stack bytes =3D 3104 Offset : 2ee5f000 Available Stack bytes =3D 20 Offset : 2f36d000 Available Stack bytes =3D 3104 Offset : 2fd09000 Available Stack bytes =3D 3012 Offset : 2fd0b000 Available Stack bytes =3D 3312 Offset : 2fd0f000 Available Stack bytes =3D 2132 Offset : 2fd2f000 Available Stack bytes =3D 2744 Offset : 2fd57000 Available Stack bytes =3D 2900 Offset : 2fdd5000 Available Stack bytes =3D 1400 Offset : 2fe35000 Available Stack bytes =3D 2832 Offset : 2ff3f000 Available Stack bytes =3D 776 Offset : 2ff45000 Available Stack bytes =3D 3188 This, after compiling the kernel. I did not have 4k stacks enabled for this test so any crashing of the stack beyond one page will not hurt the system. This was on linux-2.6.13.4. Anyway, I tried to enable 4k stacks and the machine would not boot past trying to install the first module. It just stopped with the interrupts disabled. So, I am now rebuilding the kernel back as I write this. That's why I am using 2.6.13 at the moment. Anyway, getting down to 20 bytes of stack-space available seems to be pretty scary. Cheers, Dick Johnson Penguin : Linux version 2.6.13 on an i686 machine (5589.54 BogoMips). Warning : 98.36% of all statistics are fiction. **************************************************************** The information transmitted in this message is confidential and may be= privileged. Any review, retransmission, dissemination, or other use of= this information by persons or entities other than the intended recipient= is prohibited. If you are not the intended recipient, please notify= Analogic Corporation immediately - by replying to this message or by= sending an email to DeliveryErrors@analogic.com - and destroy all copies= of this information, including any attachments, without reading or= disclosing them. Thank you. ------_=_NextPart_001_01C60742.22387880 Content-Type: APPLICATION/x-gzip; name="stack.tar.gz" Content-Transfer-Encoding: base64 Content-Description: stack.tar.gz Content-Disposition: attachment; filename="stack.tar.gz" H4sIAN0cq0MAA+1bbWwcRxmeuziJ75q2Tgj9AqEhddRzbZ/v019xwI7tJC6OndhOmiohm73bPe8m d7fH7p7jQAspTtpaTdQgEATxg1b84EcRaoVACH6QkqgQBKhUQPlRQRBEuhAQaVUKFKh535nZu91L 4jQCB6Hu64xnnpln3vmeeWfWsWw5e7CDLKnEYqlYVzoNPpN6n4XjsWQ60RmPdaYhHrzOJKHppa0W l7JlyyalxDQMezHe9dL/T8Vi489+L1kZMJ6LjH88mYA0Z/xjyRTw413xNKGxJauRS97l4/+p4dHN gUCgioNkGUF0/GhDYwr8J8I8PkUoWUki5P3kbrKCYXBHgAPuPITRLQfXAG4ZuLWgZO2jDY3o3gP4 PSItIBwTyItu70pC0GF+0sTTWdwXIA0chYgIuBUiPQheCdJ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WOGBUttVGQSMYqOMUwnfoYKNX8yNguLIFblWeVMHQ9yZkLNcABAjJyHCFMt hSzbsDLeMkWQV5GHed15mDUK9shwK/uh9+o5Rc3RwfGxzSNbpO0Tw8Pbtk9BNETqRRXOAlUtlGwJ CiqFQtm8Dklq3lJZl/ckscvj8VQb73LeDdiE2Q10rwtn63CG4dYQfoMUJzknYPfQ5ogk7ZwcnpCG JlvaXNpYIkKIVKwr41Rrg7/h/7eF7/9G2S6V7ag9uyRb3PX2/3jK9f+/+Psv/nchf/+/CVI1AhNq tjsHo3HNv31OxmOpsJueid8IXU0vqj0Rc5FzyU7lBnTnlFjPonSYUF56ZlF6sp6+eM3jSS89sTi9 K+Wte7prUTq0zENX0ovRYSl56GpyUXqi21v3XHLRund1dXrYqUWVJ+Pd3f6G7Ysvvvjiiy+++OKL L7744osvvvjiiy+++PI/kn8DEqfrrgBQAAA= ------_=_NextPart_001_01C60742.22387880-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/