From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 16688 invoked from network); 18 Jul 1999 07:11:14 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 18 Jul 1999 07:11:14 -0000 Received: from paralleldata.com (smtp.paralleldata.com [38.153.145.2]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id DAA08822 for ; Sun, 18 Jul 1999 03:11:13 -0400 Received: by paralleldata.com from localhost (router,SLMail V2.5); Sun, 18 Jul 1999 02:15:59 -0500 Received: by paralleldata.com from paralleldata.com (207.136.51.121::mail daemon; unverified,SLMail V2.5); Sun, 18 Jul 1999 02:15:58 -0500 Sender: "Wsb" Message-ID: <37917E8A.1D7D0299@paralleldata.com> Date: Sun, 18 Jul 1999 02:13:14 -0500 From: "Wes Bauske" Organization: PDS Inc. X-Mailer: Mozilla 4.51 [en] (X11; I; Linux 2.2.5-15 i686) X-Accept-Language: en MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: SCSI Tape Blocking References: <3790A402.BA6BA3CD@paralleldata.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Wes Bauske wrote: > > I just received some DLT tapes from another company > that were written on Sun Solaris with approximately > 12MB physical block size. I tried to read them with > Linux on my Alpha but Linux fails with the messge > > "dd: /dev/st0: Value too large for defined data type" > > dmesg shows: > > st: failed to enlarge buffer to 11987040 bytes. > > It seems Linux is running into a limit on the order of 2MB > from my other testing. > > I looked a bit at the code and I think a kmalloc() > for that size failed, or, possibly it tried to get a > DMA region that large. Anyone have any ideas how to > get the tape read? > The problem is in mm/page_alloc.c A define for NR_MEM_LISTS with a value of 6 is too small to allocate sufficient memory for the st device driver. All you have to do is set NR_MEM_LISTS to 7 or more. I set it to 8 and rebuilt my kernel and it works like a champ so far. I'm a gigabyte into the tape and it's still chunking along. I believe I can now go to 32MB blocks assuming I understand how it all works. Anyone know if setting this define larger causes trouble anywhere else?? It appears it controls the number and allowed size of the memory pool chunks. By increasing it from 6 to 8 I'm allowing chunks 2x and 4x larger than the previous max. The term used is the "order" of the chunk which seems to be just the size requested rounded to a page size times a power of 2. Another alternative is to change the number of scatter/gather buffers in st.c to allow more than 16 segments. Either way allows st.c to allocate sufficient space to do the large tape blocks. Perhaps modifying st.c is preferable to mucking with page_alloc.c assuming there is no issue with using more than 16 s/g segments. Wes