Re: PATCH: cdrecord: avoiding scsi device numbering for ide devic es

From: Jens Axboe (axboe_at_suse.de)
Date: 08/09/04

  • Next message: Bjorn Helgaas: "[PATCH] Fwd: Re: USB IRQ routing problem"
    Date:	Mon, 9 Aug 2004 20:38:58 +0200
    To: Kern Alexander <alexander.kern@siemens.com>
    
    

    (if you don't cc me, I don't see your mail. it's been 4 days now. always
    cc on linux-kernel, it's the etiquette!)

    On Thu, Aug 05 2004, Kern Alexander wrote:
    > Jens Axboe wrote:
    >
    > > On Thu, Aug 05 2004, Joerg Schilling wrote:
    > >
    > >>>From: Jens Axboe <axboe@suse.de>
    > >>
    > >>>ATA method is misnamed, it's really SG_IO that is used. And you want to
    > >>>use that regardless of the device type, SCSI or ATAPI. There's no such
    > >>>thing as an ATA burner, and there's no need to differentiate between
    > >>>SCSI or ATAPI CD-ROM's when burning - SG_IO is the method to use. So
    > >>>forget browsing /proc/ide and other hacks.
    > >>
    > >>I am sorry but as Linux already has 6 different interfaces for sending
    > >>Generic SCSI commands and thus, we are running out of names.
    > >>
    > >>Let me give you an advise: consolidate Linux so that is does only need
    > >>/dev/sg and fix the bugs in ide-scsi instead of constantly inventing new
    > >>unneeded interfaces.
    > >
    > >
    > > That's been the general direction for quite some time, just that SG_IO
    > > is the preferred method since that works all around. You were the one
    > > that merged support for the CDROM_SEND_PACKET interface, which has
    > > _never_ been advertised as a way to burn CDs in Linux. I'd suggest you
    > > remove that.
    > >
    > Silly, as I suggested a patch to Joerg, it was the uniquely ability to
    > burn without ide-scsi. And known you, it simply works, it let me to
    > scan for burners(what SG_IO cannot), it works in 2.4.X and 2.6.X.

    Yes it simply works, as long as it works...

    > Make SG_IO better and CDROM_SEND_PACKET will die, without your
    > suggestions.

    SG_IO is perfect as is, what problems are you referring to?

    > P.S. I'm know that CDROM_SEND_PACKET has a overhead, by me it's 4%. I
    > can live with it.

    In 2.6, there is basically zero extra overhead with CDROM_SEND_PACKET,
    since it's just a small wrapper on top of SG_IO (see scsi_ioctl.c if you
    are curious), so you cannot measure a performance difference between the
    two there.

    In 2.4 it's orders of magnitude slower, since it will not use
    CDROM_SEND_PACKET and it puts unnecessary strain on the memory allocator
    to larger chunks of physically contigous memory. Note that you will not
    see interrupt handler load if you are only doing casual performance
    monitoring.

    -- 
    Jens Axboe
    -
    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/
    

  • Next message: Bjorn Helgaas: "[PATCH] Fwd: Re: USB IRQ routing problem"

    Relevant Pages

    • Re: sym53c8xx_2 regressions in 2.6.9-rc2
      ... I don't have time to wade through the mountains of crap on linux-kernel. ... You report the dmesg from a 2.6.8 kernel, ... Is the sym2 driver version 2.1.18j in both kernels? ... 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/ ...
      (Linux-Kernel)
    • Re: NAPI poll routine happens in interrupt context?
      ... > the MIPS architecture math routines seem to need to sleep. ... Here is a new trace, showing the same issue with IPv4: ... If this is no longer appropriate for linux-kernel, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Fw: two 2.6.13-rc3-mm3 oddities
      ... I am ccing this to linux-kernel for a wider audience. ... it myself and see if I can reproduce it. ... static inline void file_free_rcu ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: The Well-Factored 386
      ... >> kernel, any development of interest to the kernel, and I for one am glad ... > I personally have made more than my fair share of off-topic posts. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)