* Re: howto configuring kernel and modules.conf for automatic loading of ide-scsi
From: Agri @ 2004-01-25 18:10 UTC (permalink / raw)
To: linux-newbie
In-Reply-To: <5.1.0.14.1.20040125082404.01f99be0@celine>
anyway thanks for answer... it's good answer i think :-)
i just knew it before...
here... i want to mention one strange thing...
if i "touch" for hd? device "hided" by ide-scsi kmod will request for a module and
system will load ide-scsi... curious... don't you think?
Agri
On Sun, 25 Jan 2004 08:28:31 -0800
Ray Olszewski <ray@comarre.com> wrote:
> At 02:06 PM 1/25/2004 +0300, Agri wrote:
> >thanks for answers, but....
> >the only thing i get: there is no way to configure loading of ide-scsi "ON
> >DEMAND".
> >Am i right?
> [old stuff deleted]
>
> I alswys hate to say that a statement like yours is correct ... there are
> so many different ways of doing things on Linux/Unix systems, it may be
> merely that I do not know the one that will solve your problem ... but I do
> believe that there is no way to use "on demand" loading in this case ...
> or, in fact, any case that involves access to filesystems. The only way for
> you to be certain of that, though, it to wait and see whether someone else,
> someone who knows a different bag of tricks from mine, suggests a method
> that works for you.
>
> I am also sorry if my prior response was so poorly phrased that that is the
> "only thing [you] get" from it. I was attempting to be more helpful than that.
>
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-newbie" 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.linux-learn.org/faqs
>
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" 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.linux-learn.org/faqs
^ permalink raw reply
* [Kernel-janitors] Re: mm/slab.c: linux 2.6.1 fix 2 unguarded
From: Brian Gerst @ 2004-01-25 18:11 UTC (permalink / raw)
To: WHarms; +Cc: kernel-janitors, linux-kernel
In-Reply-To: <S264257AbUAYOAm/20040125140042Z+37462@vger.kernel.org>
(Walter Harms) wrote:
> Hi list,
> this fixes catches 2 unguarded kmallocs() and changes a statement so that PAGE_SHIFT >20 causes a warning.
> At least sparc64 is prepared for a PAGE_SHIFT >20.
>
> hope that helps,
> walter
>
>
> --- mm/slab.c.org 2004-01-25 08:18:25.243165360 +0100
> +++ mm/slab.c 2004-01-25 08:33:05.135401408 +0100
> @@ -666,7 +666,7 @@
> * Fragmentation resistance on low memory - only use bigger
> * page orders on machines with more than 32MB of memory.
> */
> - if (num_physpages > (32 << 20) >> PAGE_SHIFT)
> + if (num_physpages > (32 << (20-PAGE_SHIFT) )
> slab_break_gfp_order = BREAK_GFP_ORDER_HI;
>
>
> @@ -737,6 +737,10 @@
> void * ptr;
>
> ptr = kmalloc(sizeof(struct arraycache_init), GFP_KERNEL);
> +
> + if (!ptr)
> + BUG();
> +
> local_irq_disable();
> BUG_ON(ac_data(&cache_cache) != &initarray_cache.cache);
> memcpy(ptr, ac_data(&cache_cache), sizeof(struct arraycache_init
> ));
> @@ -744,6 +748,10 @@
> local_irq_enable();
>
> ptr = kmalloc(sizeof(struct arraycache_init), GFP_KERNEL);
> +
> + if (!ptr)
> + BUG();
> +
> local_irq_disable();
> BUG_ON(ac_data(malloc_sizes[0].cs_cachep) != &initarray_generic.
> cache);
> memcpy(ptr, ac_data(malloc_sizes[0].cs_cachep),
>
> -
> 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/
>
BUG_ON(!ptr) would be better.
--
Brian Gerst
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply
* Re: pmdisk working on ppc (WAS: Help port swsusp to ppc)
From: Colin Leroy @ 2004-01-25 18:08 UTC (permalink / raw)
To: Benjamin Herrenschmidt
Cc: Hugang, Patrick Mochel, Nigel Cunningham, ncunningham,
Linux Kernel Mailing List, linuxppc-dev list
In-Reply-To: <1074988008.1262.125.camel@gaston>
On 25 Jan 2004 at 10h01, Benjamin Herrenschmidt wrote:
Hi,
> > Didn't you forget to include include/asm-ppc/suspend.h ? ;-)
>
> Yes, but you could have re-created it easily:
Thanks - I wasn't sure about it.
The kernel now builds. However, after doing
echo disk > /sys/power/state
or "hda14" or "/dev/hda14" (which is my swap partition) instead of "disk",
nothing happens (and nothing gets logged).
The only things different from your patch is that I added PMAC_MB_CAN_SLEEP
to my iBook's entry in pmac_feature.c, and added
return -EBUSY;
after your
if (state != 2 && state != 3)
return 0;
in radeon_pm.c (to avoid pmud putting the iBook to sleep by mistake).
relevant .config part:
# CONFIG_SOFTWARE_SUSPEND is not set
CONFIG_PM_DISK=y
CONFIG_PM_DISK_PARTITION="/dev/hda14"
Any pointer ? (did I miss something obvious?)
Thanks,
--
Colin
^ permalink raw reply
* Re: mm/slab.c: linux 2.6.1 fix 2 unguarded kmalloc and a PAGE_SHIFT
From: Manfred Spraul @ 2004-01-25 18:16 UTC (permalink / raw)
To: (Walter Harms); +Cc: Linux Kernel Mailing List
Hi Walter,
>this fixes catches 2 unguarded kmallocs() and changes a statement so that PAGE_SHIFT \
>>20 causes a warning. At least sparc64 is prepared for a PAGE_SHIFT >20.
>
>
Why should a page shift above 20 generate a warning?
The two unguarded kmallocs are obivously wrong, but I'd prefer to guard
them with __GFP_NOFAIL.
--
Manfred
^ permalink raw reply
* Re: 2.4.25pre7 - cannot mount 128MB vfat fs on Minolta camera
From: Philip Dodd @ 2004-01-25 18:21 UTC (permalink / raw)
To: Marc Mongenet; +Cc: OGAWA Hirofumi, linux-kernel
In-Reply-To: <40140221.40901@freesurf.ch>
Marc Mongenet wrote:
8<
>
> Well, 10 minutes after finally reporting the problem, I discovered that
> it is different than described above...
>
> So, I can mount the 16 MB card or the 128 MB card with any kernel,
> BUT I have to reboot the system when I change the cards. Example:
8<
I have some faint recollections of when I was using USB mass storage
camera media. Look into a package called scsiadd; which can be used to
rescan the bus and add/remove devices on the fly.
http://llg.cubic.org/tools/ is what google brings me up.
I think this will help you - you'll need to rescan the USB mass-storage
bus - remove/add devices when you change the parameters of a device.
It's quite easy, I cobbled together a little shell script that would
remove add the device then mount it. I used that script to mount the
USB card instead of mount - meant that I was sure the scsiadd stuff was
handled if needed.
I think this will help you work around having to reboot.
rgds,
Phil
--
() ascii ribbon campaign - against html mail
/\ - against microsoft attachments
^ permalink raw reply
* Is there a way to keep the 2.6 kjournald from writing to idle disks? (to allow spin-downs)
From: Lutz Vieweg @ 2004-01-25 18:29 UTC (permalink / raw)
To: linux-kernel
Hi everyone,
I run a server that usually doesn't have to do anything on the local filesystems,
it just needs to answer some requests and perform some computations in RAM.
So I use the "hdparm -S 123" parameter setting to keep the (IDE) system disk from
spinning unneccessarily.
Alas, since an upgrade to kernel 2.6 and ext3 filesystem, I cannot find a way to
let the harddisk spin down - I found out that "kjournald" writes a few blocks every
few seconds.
As I wouldn't like to downgrade to ext2: Is there any way to keep the 2.6 kjournald
from writing to idle disks?
I cannot see a good reason why kjournald would write when there are no dirty buffers -
but still it does.
Regards,
Lutz Vieweg
BTW: I used the following script to find the source of the write operations,
just start it in one terminal, do a "sync" in another, then say "hdparm -y /dev/hda"
and you can see that immediately or a few seconds later kjournald will enter the
"D" state and wake up when the disk has spun up.
-------------------------------------------------------------------------------------
#!/usr/bin/tclsh
cd /proc
set stat_arr {
pid
comm
state
ppid
process_group,
session
tty_nr
tty_pgrp
flags
min_flt
cmin_flt
maj_flt
cmaj_flt
utime
stime
cutime
cstime
priority
nice
num_threads
it_real_value
start_time
vsize
rss
RLIMIT_RSS
start_code
end_code
start_stack
esp
eip
pending_signals
blocked_sigs
sigign
sigcatch
wchan
nswap
cnswap
exit_signal
task_cpu
rt_priorit
policy
}
proc scan_stat {_pids _dat} {
upvar $_dat dat
upvar $_pids pids
global stat_arr
set pids [lsort -integer [glob {[0-9]*}]]
foreach pid $pids {
set in [open "$pid/stat" "r"]
set l [gets $in]
close $in
set a [split $l " "]
foreach x $a n $stat_arr {
set dat($pid,$n) $x
}
}
}
#puts [array get dat]
array set dat {}
set pids {}
scan_stat pids dat
while {1} {
after 1000
array set new_dat {}
set new_pids {}
scan_stat new_pids new_dat
foreach pid $new_pids {
if {$pid != [pid]} {
if {![info exists dat($pid,pid)]} {
puts "new process $pid $new_dat($pid,comm)"
} else {
set somechange 0
foreach a $stat_arr {
if {$new_dat($pid,$a) != $dat($pid,$a)} {
puts "$pid $new_dat($pid,comm) attribute '$a' from $dat($pid,$a) to
$new_dat($pid,$a)"
set somechange 1
}
}
if {$somechange} {
puts ""
}
}
}
}
array set dat {}
array set dat [array get new_dat]
set pids $new_pids
}
-------------------------------------------------------------------------------------
^ permalink raw reply
* Re: running masm611 inside dosemu and freedos
From: Bart Oldeman @ 2004-01-25 18:23 UTC (permalink / raw)
To: Matthew Wilson; +Cc: linux-msdos
In-Reply-To: <20040125180031.GB8876@frank.overlook.homelinux.net>
On Sun, 25 Jan 2004, Matthew Wilson wrote:
> On Sun, Jan 25, 2004 at 04:10:41PM +0000, Ged Haywood wrote:
> > Of course if you have a Linux box you probably have a very much better
> > assembler than MASM on the box already, and there are certainly free
> > ones that you can download.
>
> I'm taking a class in assembly programming where all the assignments
> have to be written in MASM syntax. I couldn't find a linux assembler
> that couldn't work on MASM syntax, but that might be because I know so
> very little about the subject that I may have overlooked it.
>
> Is there a linux assembler that can handle MASM syntax?
no, there isn't. There is intel_syntax in gas and NASM which can be quite
close but there are important differences. Also asm code for DOS will be
very different to asm code for Linux as far as interfacing with the
hardware and OS (or BIOS) goes.
if the book is easy to find (it was at the local Borders here) you could
have a look at Jeff Duntemann's "Assembly Language Step By Step" which
tells you a bit about the differences and what's available.
http://www.duntemann.com/assembly.htm
reviews are mixed though.
As to masm in dosemu, this will generally work, and may be more
comfortable than real DOS since it can only crash the virtual machine.
However direct hardware access, IRQs and so on (one of the reasons ASM
is still used is for these things, where C can be too cumbersome) DOSEMU
can be quite tricky, depending on how well it emulates the hardware or how
you configure it.
Bart
^ permalink raw reply
* Re: GCC-3.4 reorders asm() with -O2
From: Ralf Baechle @ 2004-01-25 18:26 UTC (permalink / raw)
To: Andi Kleen, Jan Hubicka, echristo, hubicka, eager, gcc,
linux-mips
In-Reply-To: <20040125170351.GA10938@nevyn.them.org>
On Sun, Jan 25, 2004 at 12:03:51PM -0500, Daniel Jacobowitz wrote:
> It is. Ralf already knows about the problem, I think - we leave
> markers outside of functions which define an entry point, save some
> additional registers to the stack, and try to fall through to the
> following function. If the function gets emitted elsewhere, obviously,
> we've lost :)
>
> [This is save_static_function...]
I only recently fixed the problem with the save_static() inline function
which of course was fragile, speculating on the compiler doing the
right thing ... I'll cook up a fix ...
Ralf
^ permalink raw reply
* Re: Is there a way to keep the 2.6 kjournald from writing to idle disks? (to allow spin-downs)
From: Andreas Dilger @ 2004-01-25 18:33 UTC (permalink / raw)
To: Lutz Vieweg; +Cc: linux-kernel
In-Reply-To: <40140B0A.90707@isg.de>
On Jan 25, 2004 19:29 +0100, Lutz Vieweg wrote:
> Alas, since an upgrade to kernel 2.6 and ext3 filesystem, I cannot find a
> way to let the harddisk spin down - I found out that "kjournald" writes a
> few blocks every few seconds.
Loop for laptop-mode patches, which should allow you to do this.
Cheers, Andreas
--
Andreas Dilger
http://sourceforge.net/projects/ext2resize/
http://www-mddsp.enel.ucalgary.ca/People/adilger/
^ permalink raw reply
* Re: 2.6.1 Unable to handle kernel paging request
From: Linus Torvalds @ 2004-01-25 18:40 UTC (permalink / raw)
To: David Pospíšil; +Cc: Andrew Morton, linux-kernel
In-Reply-To: <200401250601.48095.foton2@post.cz>
On Sun, 25 Jan 2004, David [iso-8859-2] Pospí?il wrote:
>
> > > Jan 25 03:51:02 foton2 kernel: EIP: 0060:[<c013bb35>] Tainted: P
What is tainting your kernel?
If it's nVidia, the most likely reason is a double free by the binary-only
nVidia driver, which just hits us when we free something unrelated.
> I had the same problem (if it is problem :-) also with 2.4
Is it in the same place? Which 2.4.x? The task free code has changed a bit
with the threading stuff, and the latest RH 2.4.x kernels with the new
threading code are more similar to 2.6.1 than older 2.4.x kernels are.
Linus
^ permalink raw reply
* [Bluez-users] Re: Cannot start bluepin
From: Daniel Kończyk @ 2004-01-25 18:47 UTC (permalink / raw)
To: Michael Neumeier; +Cc: bluez-users
In-Reply-To: <1075047563.3142.6.camel@matos.local>
Hi
On 25/01/04 17:19 +0100, Michael Neumeier wrote:
> Yes, I am running X. And I suppose that I have the right to use the
> display, as I tried to start bluepin under a console running in KDE
> (3.1.5).
> I already thought in the same direction, but I guess this must be a
> special thing because I had never problems to use my display.
This script does not work..This was mentioned many times on the
list.
I use something much more simple, my pin file consists only of:
#!/bin/sh
echo "PIN:123456"
of course, you can change '123456' to whatever pin you like
works for me without any problems
--
Daniel Kończyk
http://konczyk.net
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply
* Re: 2.4.25pre7 - cannot mount 128MB vfat fs on Minolta camera
From: OGAWA Hirofumi @ 2004-01-25 18:48 UTC (permalink / raw)
To: Marc Mongenet; +Cc: linux-kernel, Greg KH, linux-usb-devel
In-Reply-To: <40140221.40901@freesurf.ch>
Hi,
Is this known problem? Any idea?
Thanks.
Marc Mongenet <Marc.Mongenet@freesurf.ch> writes:
> OGAWA Hirofumi wrote:
> > Marc Mongenet <Marc.Mongenet@freesurf.ch> writes:
> >
> >>Hi, I have a Minolta DiMAGE F100 camera and two memory cards,
> >>a 16 MB and a 128 MB.
> >>With kernel 2.2.25 I can mount the 16 MB but not the 128 MB.
> >>With kernel 2.4.16 to 2.4.25pre6 I can mount the 128 MB but not the 16 MB.
> >>With kernel 2.4.25pre7 I can mount the 16 MB but not the 128 MB.
> >>
> >>There is probably something special with the filesystem used by Minolta
> >>because I have to format it with the camera to be recognized by the camera.
> > What error did you get? Please send output of dmesg and first
> > 256KB of 128MB card.
>
> Well, 10 minutes after finally reporting the problem, I discovered that
> it is different than described above...
>
> So, I can mount the 16 MB card or the 128 MB card with any kernel,
> BUT I have to reboot the system when I change the cards. Example:
Thanks for good testing.
First of /dev/sda1 contains the valid FAT format. But it appears on
offset of 0x5000.
0000000 0000 0000 0000 0000 0000 0000 0000 0000
*
0005000 00eb 2090 2020 2020 2020 0020 2002 0001
0005010 0002 0002 f800 001f 0020 0008 0061 0000
0005020 d39f 0003 0080 0029 0000 4e00 204f 414e
0005030 454d 2020 2020 4146 3154 2036 2020 0000
0005040 0000 0000 0000 0000 0000 0000 0000 0000
*
00051f0 0000 0000 0000 0000 0000 0000 0000 aa55
0005200 fff8 ffff ffff ffff 0000 0000 0000 0000
0x5000-0x5200 is the valid FAT format for 128MB. These must be on
offset of 0x0-0x200.
> 1) boot the system
>
> 2) turn on camera with 16 MB card
> Jan 25 18:35:39 kameha kernel: hub.c: new USB device 00:1d.1-1, assigned address 5
>
> 3)
> # cat /etc/fstab | grep f100
> /dev/sda1 /f100 vfat users,noauto 0 0
> # mount /f100
> # ls /f100
> dcim
> # umount /f100
> #
>
> 4) turn off camera
> Jan 25 18:38:28 kameha kernel: usb.c: USB disconnect on device 00:1d.1-1 address 5
>
> 5) put 128 MB card inside, turn on again
> Jan 25 18:39:00 kameha kernel: hub.c: new USB device 00:1d.1-1, assigned address 6
>
> 6)
> # mount /f100
> Jan 25 18:39:11 kameha kernel: FAT: bogus logical sector size 0
> Jan 25 18:39:11 kameha kernel: VFS: Can't find a valid FAT filesystem on dev 08:01.
> mount: wrong fs type, bad option, bad superblock on /dev/sda1,
> or too many mounted file systems
>
> 7)
> # dmesg
[...]
> i810_audio: Connection 0 with codec id 2
> ac97_codec: AC97 Audio codec, id: ADS116 (Unknown)
> i810_audio: AC'97 codec 2 supports AMAP, total channels = 2
> usb.c: registered new driver usbdevfs
> usb.c: registered new driver hub
> host/usb-uhci.c: $Revision: 1.275 $ time 13:15:45 Jan 25 2004
> host/usb-uhci.c: High bandwidth mode enabled
> PCI: Setting latency timer of device 00:1d.0 to 64
> host/usb-uhci.c: USB UHCI at I/O 0xe800, IRQ 16
> host/usb-uhci.c: Detected 2 ports
> usb.c: new USB bus registered, assigned bus number 1
> hub.c: USB hub found
> hub.c: 2 ports detected
> PCI: Setting latency timer of device 00:1d.1 to 64
> host/usb-uhci.c: USB UHCI at I/O 0xe880, IRQ 19
> host/usb-uhci.c: Detected 2 ports
> usb.c: new USB bus registered, assigned bus number 2
> hub.c: USB hub found
> hub.c: 2 ports detected
> PCI: Setting latency timer of device 00:1d.2 to 64
> host/usb-uhci.c: USB UHCI at I/O 0xec00, IRQ 18
> host/usb-uhci.c: Detected 2 ports
> usb.c: new USB bus registered, assigned bus number 3
> hub.c: USB hub found
> hub.c: 2 ports detected
> host/usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
> Initializing USB Mass Storage driver...
> usb.c: registered new driver usb-storage
> USB Mass Storage support registered.
> NET4: Linux TCP/IP 1.0 for NET4.0
> IP Protocols: ICMP, UDP, TCP
> IP: routing cache hash table of 8192 buckets, 64Kbytes
> TCP: Hash tables configured (established 262144 bind 65536)
> NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
> VFS: Mounted root (ext2 filesystem) readonly.
> Freeing unused kernel memory: 104k freed
> hub.c: new USB device 00:1d.0-2, assigned address 2
> usb.c: USB device 2 (vend/prod 0x46d/0xc00e) is not claimed by any active driver.
> hub.c: new USB device 00:1d.1-1, assigned address 2
> scsi1 : SCSI emulation for USB Mass Storage devices
> Vendor: MINOLTA Model: DiMAGE F100 Rev: 1.00
> Type: Direct-Access ANSI SCSI revision: 02
> Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
> SCSI device sda: 29120 512-byte hdwr sectors (15 MB)
> sda: Write Protect is off
> sda: sda1
> WARNING: USB Mass Storage data integrity not assured
> USB Mass Storage device found at 2
> eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
> usb.c: USB disconnect on device 00:1d.1-1 address 2
> hub.c: new USB device 00:1d.1-1, assigned address 3
> WARNING: USB Mass Storage data integrity not assured
> USB Mass Storage device found at 3
> FAT: bogus logical sector size 0
> VFS: Can't find a valid FAT filesystem on dev 08:01.
> FAT: bogus logical sector size 0
> VFS: Can't find a valid FAT filesystem on dev 08:01.
> usb.c: USB disconnect on device 00:1d.1-1 address 3
> hub.c: new USB device 00:1d.1-1, assigned address 4
> WARNING: USB Mass Storage data integrity not assured
> USB Mass Storage device found at 4
> FAT: bogus logical sector size 0
> VFS: Can't find a valid FAT filesystem on dev 08:01.
> usb.c: USB disconnect on device 00:1d.1-1 address 4
> hub.c: new USB device 00:1d.1-1, assigned address 5
> WARNING: USB Mass Storage data integrity not assured
> USB Mass Storage device found at 5
> usb.c: USB disconnect on device 00:1d.1-1 address 5
> hub.c: new USB device 00:1d.1-1, assigned address 6
> WARNING: USB Mass Storage data integrity not assured
> USB Mass Storage device found at 6
> FAT: bogus logical sector size 0
> VFS: Can't find a valid FAT filesystem on dev 08:01.
> FAT: bogus logical sector size 0
> VFS: Can't find a valid FAT filesystem on dev 08:01.
--
OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
^ permalink raw reply
* Re: iptables routing help
From: William Knop @ 2004-01-25 18:53 UTC (permalink / raw)
To: netfilter
[-- Attachment #1: Type: text/plain, Size: 2509 bytes --]
Okay, the problem is that we don't want to do nat (as I said in my
original plee for help). We need external ips on all of the machines.
Additionally, The ISP's DHCP server specifies it's own gateway, so I
can't do normal routing, without spoofing the gateway's address and
doing all sorts of ugly stuff (please correct me if I'm wrong).
I was under the impression one could have iptables drop a packet from
the prerouting or brouting table and it would go through the machine's
routing table, without being specified on all the lan machines as the
gateway.
The physical layout we have are a bunch of boxes connected to a switch,
and the dsl modem connected to the switch's uplink port. I could have
the modem jack into a firewall box, or something, however the linux
ethernet bridge seems to do very odd things to arps, and also iptables.
Would bridging be necessary?
> On January 25, 2004 12:31 am, William Knop wrote:
> > Say I want to transfer a file from one computer to another in my
> house.
> > Since they are on different subnets, the data is routed out my modem
> to
> > the gateway at my isp, and then back in my modem and to the other
> > computer in my house. Ideally (in any reasonable setup), the data
> > should not leave the house and flood my dsl modem with local traffic.
> >
> > So, I want to grab packets destined for the gateway (via a
> > firewall/iptables), check if the packet is destined for one of the
> > three local subnets, and make the packet go directly to it's
> > destination. I'm not sure if this has to do with ethernet frames,
> > tcp/ip, or arp or something like that, but I've tried lots of things
> > with minimal success.
> >
> > > im not shure if i can understand the schema, could be more
> specific?
> > >
> > > thanks
> > >
> > >
>
> Okay ...you have a LAN inside the DSL modem that has
> externally routable IPs on different subnets, and you want
> to setup an internal routing table that knows all of these
> hosts.
>
> One question ... what is the physical setup involved?
>
> i.e. are all the boxes involved connected directly to the DSL
> modem?
> is the Linux/Iptables box the only box connected to the DSL
> modem, and
> the downstream boxes are connected to a switch/hub off a
> secondary
> interface off the firewall box?
>
> -- I suspect from your description we are looking at
> DSLmodem/router to
> separate boxes ...
>
>
> Alistair
[-- Attachment #2: Type: text/enriched, Size: 3893 bytes --]
Okay, the problem is that we don't want to do nat (as I said in my
original plee for help). We need external ips on all of the machines.
Additionally, The ISP's DHCP server specifies it's own gateway, so I
can't do normal routing, without spoofing the gateway's address and
doing all sorts of ugly stuff (please correct me if I'm wrong).
I was under the impression one could have iptables drop a packet from
the prerouting or brouting table and it would go through the machine's
routing table, without being specified on all the lan machines as the
gateway.
The physical layout we have are a bunch of boxes connected to a
switch, and the dsl modem connected to the switch's uplink port. I
could have the modem jack into a firewall box, or something, however
the linux ethernet bridge seems to do very odd things to arps, and
also iptables. Would bridging be necessary?
<excerpt><fontfamily><param>Courier</param><x-tad-bigger>On January
25, 2004 12:31 am, William Knop wrote:
></x-tad-bigger><italic><x-tad-bigger> Say I want to transfer a file
from one computer to another in my house.
</x-tad-bigger></italic><x-tad-bigger>></x-tad-bigger><italic><x-tad-bigger>
Since they are on different subnets, the data is routed out my modem to
</x-tad-bigger></italic><x-tad-bigger>></x-tad-bigger><italic><x-tad-bigger>
the gateway at my isp, and then back in my modem and to the other
</x-tad-bigger></italic><x-tad-bigger>></x-tad-bigger><italic><x-tad-bigger>
computer in my house. Ideally (in any reasonable setup), the data
</x-tad-bigger></italic><x-tad-bigger>></x-tad-bigger><italic><x-tad-bigger>
should not leave the house and flood my dsl modem with local traffic.
</x-tad-bigger></italic><x-tad-bigger>></x-tad-bigger><italic><x-tad-bigger>
</x-tad-bigger></italic><x-tad-bigger>></x-tad-bigger><italic><x-tad-bigger>
So, I want to grab packets destined for the gateway (via a
</x-tad-bigger></italic><x-tad-bigger>></x-tad-bigger><italic><x-tad-bigger>
firewall/iptables), check if the packet is destined for one of the
</x-tad-bigger></italic><x-tad-bigger>></x-tad-bigger><italic><x-tad-bigger>
three local subnets, and make the packet go directly to it's
</x-tad-bigger></italic><x-tad-bigger>></x-tad-bigger><italic><x-tad-bigger>
destination. I'm not sure if this has to do with ethernet frames,
</x-tad-bigger></italic><x-tad-bigger>></x-tad-bigger><italic><x-tad-bigger>
tcp/ip, or arp or something like that, but I've tried lots of things
</x-tad-bigger></italic><x-tad-bigger>></x-tad-bigger><italic><x-tad-bigger>
with minimal success.
</x-tad-bigger></italic><x-tad-bigger>></x-tad-bigger><italic><x-tad-bigger>
</x-tad-bigger></italic><x-tad-bigger>></x-tad-bigger><italic><x-tad-bigger>
> im not shure if i can understand the schema, could be more specific?
</x-tad-bigger></italic><x-tad-bigger>></x-tad-bigger><italic><x-tad-bigger> >
</x-tad-bigger></italic><x-tad-bigger>></x-tad-bigger><italic><x-tad-bigger>
> thanks
</x-tad-bigger></italic><x-tad-bigger>></x-tad-bigger><italic><x-tad-bigger> >
</x-tad-bigger></italic><x-tad-bigger>></x-tad-bigger><italic><x-tad-bigger> >
</x-tad-bigger></italic><x-tad-bigger>
Okay ...you have a LAN inside the DSL modem that has
externally routable IPs on different subnets, and you want
to setup an internal routing table that knows all of these
hosts.
One question ... what is the physical setup involved?
i.e. are all the boxes involved connected directly to the DSL
modem?
is the Linux/Iptables box the only box connected to the DSL
modem, and
the downstream boxes are connected to a switch/hub off a
secondary
interface off the firewall box?
-- I suspect from your description we are looking at
DSLmodem/router to
separate boxes ...
Alistair
</x-tad-bigger></fontfamily></excerpt>
^ permalink raw reply
* Installing freedos
From: Jan Willem Stumpel @ 2004-01-25 18:53 UTC (permalink / raw)
To: linux-msdos
Wouldn't it be nice if freedos could be installed with a command like
installfreedos <directory>
Instantly transforming <directory> into a dosemu-bootable C:
drive, with a sub-directory full of DOS utilities?
Or is this already possible?
BTW here is a sneak preview of the new version of Dosemu for Dummies:
http://www.jw-stumpel.nl/dosemu-new.html
Regards, Jan
^ permalink raw reply
* Re: [PATCH] Big powermac update
From: Tom Rini @ 2004-01-25 18:55 UTC (permalink / raw)
To: Benjamin Herrenschmidt; +Cc: Andrew Morton, Linux Kernel list
In-Reply-To: <1074905912.834.43.camel@gaston>
On Sat, Jan 24, 2004 at 11:58:33AM +1100, Benjamin Herrenschmidt wrote:
>
> >
> > Can you please put the 970 register definitions into
> > include/asm-ppc/reg_970.h or something along those lines?
>
> I won't create a file for 3 registers :) Also, HID2/3 are defined
> on other CPUs, as HIOR, none of these are strictly 970 specific
> in fact though we only use them on it (coment may need fixing, bu
> that's ok at this point).
Are they found on regular, classic PPCs or just on others in the
64bit family? The problem is we don't want to let <asm/reg.h> get to be
as bad as it used to be.
--
Tom Rini
http://gate.crashing.org/~trini/
^ permalink raw reply
* Re: Is there a way to keep the 2.6 kjournald from writing to idle disks? (to allow spin-downs)
From: Matthias Andree @ 2004-01-25 18:56 UTC (permalink / raw)
To: linux-kernel
In-Reply-To: <40140B0A.90707@isg.de>
On Sun, 25 Jan 2004, Lutz Vieweg wrote:
> I run a server that usually doesn't have to do anything on the local
> filesystems, it just needs to answer some requests and perform some
> computations in RAM.
>
> So I use the "hdparm -S 123" parameter setting to keep the (IDE)
> system disk from spinning unneccessarily.
>
> Alas, since an upgrade to kernel 2.6 and ext3 filesystem, I cannot
> find a way to let the harddisk spin down - I found out that
> "kjournald" writes a few blocks every few seconds.
>
> As I wouldn't like to downgrade to ext2: Is there any way to keep the
> 2.6 kjournald from writing to idle disks?
>
> I cannot see a good reason why kjournald would write when there are no
> dirty buffers - but still it does.
I can spin down my "extra" hard drives just fine with 2.6; I have a
"hde" drive (IBM DTLA, a wonder it's still alive, it's just a cache disk
however, no valuable data on it) attached to a Promise PDC 20265R which
has one large ext3fs partition, /dev/hde1, across the whole disk, which
will sit idle for ages, without spinning up. I have another IDE harddisk
with just reiserfs and vfat, it stays in standby as well. The third IDE
harddisk is so quiet I can't tell, without asking hdparm -C, whether it
is up, and I do not really care, but it seems it stays in standby as
well.
So the question is, do you run stuff that marks blocks dirty regularly?
atime updates? Does mounting ALL the partition (including root) with
option "noatime" help, policy and applications permitting?
Another thing I find very annoying however: whenever a disk writes the
last dirty block and is in a known-good shape, it should mark its state
as "clean" so it doesn't need to be spun up just to change the
superblock from "not clean" to "clean" when the computer is shut down
and the FS is umounted. The first action when touching the disk would
then mark the fs "not clean" until after the last fs was marked "clean".
--
Matthias Andree
Encrypt your mail: my GnuPG key ID is 0x052E7D95
^ permalink raw reply
* Re: [patch 3/18] gcc-3.5: ax25
From: David S. Miller @ 2004-01-25 18:58 UTC (permalink / raw)
To: akpm; +Cc: netdev
In-Reply-To: <200401251106.i0PB6xo25047@mail.osdl.org>
From: akpm@osdl.org
Date: Sun, 25 Jan 2004 03:06:59 -0800
(Why is x25_alloc_socket() using GFP_ATOMIC?)
x25_dev.c:x25_receive_data() runs from softint, which
calls af_x25.c:x25_rx_call_request() which calls
af_x25.c:x25_make_new() which calls af_x25.c:x25_alloc_socket().
^ permalink raw reply
* Re: PATCH: (as177) Add class_device_unregister_wait() and platform_device_unregister_wait() to the driver model core
From: Linus Torvalds @ 2004-01-25 19:02 UTC (permalink / raw)
To: Alan Stern; +Cc: Greg KH, Kernel development list, Patrick Mochel
In-Reply-To: <Pine.LNX.4.44L0.0401251224530.947-100000@ida.rowland.org>
On Sun, 25 Jan 2004, Alan Stern wrote:
>
> Is there some reason why modules don't work like this?
There's a few:
- pain. pain. pain.
- doing proper refcounting of modules is _really_ really hard. The reason
is that proper refcounting is a "local" issue: you reference count a
single data structure. It's basically impossible to make a "global"
reference count without jumping through hoops.
- lack of testing. Unloading a module happens once in a blue moon, if
even then.
The proper thing to do (and what we _have_ done) is to say "unloading of
modules is not supported". It's a debugging feature, and you literally
shouldn't do it unless you are actively developing that module.
Sadly, some modules are broken. Old 16-bit PCMCIA in particular _depends_
on unloading modules, since the old PCMCIA layer doesn't do hotplug: it
literally thinks of module load/unload as the "plug/unplug" event.
But it basically boils down to: don't think of module unload as a "normal
event". It isn't. Getting it truly right is (a) too painful and (b) would
be too slow, so we're not even going to try.
(As an example of "too painful, too slow", think of something like a
packet filter module. You'd literally have to increment the count in every
part that gets a packet, and decrement the count at every point where it
lets the packet go. And since it would have to be SMP-safe, it would have
to be a locked cycle, or we'd have to have per-CPU counters - at which
point you now also have to worry about things like preemption and
sleeping, which just means that it would be a _lot_ of very fragile code).
Linus
^ permalink raw reply
* Re: mpspec.h, mach_mpspec.h
From: Sam Ravnborg @ 2004-01-25 19:11 UTC (permalink / raw)
To: J.A. Magallon; +Cc: Lista Linux-Kernel, Andrew Morton
In-Reply-To: <20040125172904.GA3195@werewolf.able.es>
>
> Workaround is to add -I/usr/src/linux/include/asm/mach-default.
i386 at least always include:
-Iinclude/asm-i386/mach-default
Which should let gcc include the file in question.
Try to compile with V=1 and post the full command line to gcc.
Sam
^ permalink raw reply
* Re: gcc-3.5 patches
From: David S. Miller @ 2004-01-25 19:05 UTC (permalink / raw)
To: akpm; +Cc: netdev
In-Reply-To: <20040125030624.54abfacf.akpm@osdl.org>
From: Andrew Morton <akpm@osdl.org>
Date: Sun, 25 Jan 2004 03:06:24 -0800
Dave, let me unload a bunch of patches which fix compilation errors and
warnings with gcc-3.5. Most or all of these are applicable to gcc-3.4 as
well.
The most common problem is using a typecasted expression as an lvalue.
This is actually a fatal error in gcc-3.5.
All applied, except the drivers/net ones (sans tg3) which Jeff said
that he got.
The sctp fix is interesting - sctp.h is using attribute((packed)) on all
its structures and as far as I can tell, it never did anything.
Amusing...
^ permalink raw reply
* RE: FW: Submission for S2io 10GbE driver
From: jamal @ 2004-01-25 19:07 UTC (permalink / raw)
To: Leonid Grossman; +Cc: 'Andi Kleen', netdev
In-Reply-To: <002401c3e2b3$94038d70$0400a8c0@S2IOtech.com>
On Sat, 2004-01-24 at 14:52, Leonid Grossman wrote:
> > What would also be interesting to see is a packet that never
> > leaves the kernel such is in forwarding. If theres a way you
> > can stash two of those cards in a box and just have them
> > forward packets coming in from one to another - would be nice
> > to see the numbers with varying packet size example {
> > 64,256,512,1518, 4K, 9K}
> >
> > cheers,
> > jamal
>
>
> Hi Jamal,
> Are you suggesting to run a benchmark between two back-to-back hosts,
> and then run the same benchmark between the two hosts via a third box
> (with two 10GbE cards) that would just forward traffic, and compare the
> results?
> Or you had a different setup in mind?
Just a simple test for packets that dont cross user space - kernel
boundary. Example forwarding of some form where a packet comes in,
data gets touched (ttl, csum etc) and gets forwarded to the egress port.
The setup will include a single box with two NICs; one connected to a
traffic generator source the other to a sink which records stats.
The interesting measurements will packet latency and throughput.
Get a off the shelf traffic generator like an IXIA (pktgen may be used
too); i.e forget ttcp and relatives.
For starters you could even have a packet coming in and being DMAed to
the otehr NIC untouched.
> Not sure what the application for something like this would be (I think
> 10GbE will be mainly deployed in a datacenter for a while), but we can
> probably run something like that and get the numbers; I'll let you know.
>
Apps would be any middle box (router, firewall, accounting etc).
Interest is more from a linux side what can we do to improve things.
cheers,
jamal
^ permalink raw reply
* Re: [janitor] netfilter: propogate return values
From: David S. Miller @ 2004-01-25 19:07 UTC (permalink / raw)
To: rddunlap; +Cc: netdev
In-Reply-To: <20040124222337.752a768a.rddunlap@osdl.org>
From: "Randy.Dunlap" <rddunlap@osdl.org>
Date: Sat, 24 Jan 2004 22:23:37 -0800
Please apply to 2.6.current.
...
From: Daniele Bellucci <bellucda@tiscali.it>
Applied, thanks.
^ permalink raw reply
* Re: [janitor] get_stats: collapse conditionals
From: David S. Miller @ 2004-01-25 19:10 UTC (permalink / raw)
To: rddunlap; +Cc: netdev
In-Reply-To: <20040124221928.16f4c708.rddunlap@osdl.org>
From: "Randy.Dunlap" <rddunlap@osdl.org>
Date: Sat, 24 Jan 2004 22:19:28 -0800
Please apply to 2.6.current.
...
From: Domen Puncer <domen@coderock.org>
Applied, although I changed
}
else
to
} else
^ permalink raw reply
* Re: [patch] Re: Kernels > 2.6.1-mm3 do not boot. - SOLVED
From: Andi Kleen @ 2004-01-25 19:12 UTC (permalink / raw)
To: Valdis.Kletnieks
Cc: Andi Kleen, Adrian Bunk, Fabio Coatti, Andrew Morton, Eric,
linux-kernel
In-Reply-To: <200401251800.i0PI0SmV001246@turing-police.cc.vt.edu>
On Sun, Jan 25, 2004 at 01:00:27PM -0500, Valdis.Kletnieks@vt.edu wrote:
> On Sun, 25 Jan 2004 18:48:37 +0100, Andi Kleen said:
>
> > It works for me with the hammer branch gcc 3.3 with -funit-at-a-time.
>
> > Are you sure the exception table sorting patch was properly applied?
>
> Was that patch an x86 issue as well, or only on the 64-bit boxes? And if it
> is a x86 issue, can you repost what *you* think it is (as opposed to what the -mm
> patch thinks it is?)
The latest bk tree (post 2.6.2rc1) has a full solution that should cover
all architectures.
AFAIK there is a known problem on MIPS (not related to the exception tables)
If someone is seeing crashes with a BK snapshot from today and -funit-at-a-time
please send me the decoded oops.
-Andi
^ permalink raw reply
* RE: FW: Submission for S2io 10GbE driver
From: jamal @ 2004-01-25 19:14 UTC (permalink / raw)
To: Leonid Grossman; +Cc: netdev
In-Reply-To: <002501c3e2b5$543c45e0$0400a8c0@S2IOtech.com>
On Sat, 2004-01-24 at 15:04, Leonid Grossman wrote:
> These schemes could be complimentary, right now we do see that different
> thresholds need to be programmed for regular and Jumbo traffic.
>
> One thing I did not mention is that our ASIC supports several
> utilization thresholds on per interrupt basis (up to 64 MSI-X
> interrupts). There are also independent tx and rx queues, and each can
> have it's own interrupt. There is a pretty large number of parameters
> that traffic could be steered upon, packet size is one of them.
>
Would be interesting to see what these queue selection parameters are.
For example, an extremely important thing to avoid is reordering of
packets. You reorder packets on a TCP flow and you perfomance goes
beserk.
> So, if you want to have different interrupt moderation schemes for
> different packet sizes, you just need to steer packets to separate
> queues based upon size, and then assign a separate MSI interrupt to
> these queues and set different utilization thresholds for different
> interrupts. At any given workload, you will be getting interrupts at
> different rate for small and for big packets.
Does sound interesting, but i am suspcious about reordering; i.e you
dont want a 64 byte packet from one flow to be in a different queue
than another which is 1500 bytes. The 2 packet must be processed
strictly in FIFO manner.
> Anyway, you are right there are many interrupt moderation schemes that
> host driver can deploy, our goal was to provide a flexible hardware
> assist.
So is it possible to program it such that if a threshold interupt rate
is crossed it adjusts its mitigation values? actually i should say its
the second order effect that is of interest to the threshold i.e the
integral of the interupt arrival rate.
cheers,
jamal
^ permalink raw reply
page: next (older) | prev (newer) | latest
- recent:[subjects (threaded)|topics (new)|topics (active)]
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.