euglug.org

[작성자:] admin

  • [Eug-lug] Concurrency, (free lunch is over article)



    Bob MillerFri Jan 7 16:21:35 PST 2005

    Mike Cherba wrote:
    
    > Both/either.  For example; One way we use multiple cores in our Network
    > security processor designs is to dedicate cores to providing a specific
    > stage of the network stack.  This allows much less cache thrashing and
    > more efficient usage than if all the cores were in an SMP session and
    > being used as available for whichever network processing needed to be
    > done.  We can repurpose cores as needed to balance capacity with demand.
    > The effectiveness of this and various other approaches does admittedly
    > rely heavily on the underlying hardware architecture.  Does each core
    > have its own cache?  how are bus accesses prioritiezed in hardware?  is
    > this a Load/Store architecture or and EIP implimentation?  Do any of the
    > cores have independant RAM?  I guess the real questin is going to be how
    > to best use whatever design Intel/AMD decide to sell us.
    
    Okay, now I understand.  I had thought you were arguing for
    task-specific CPUs.  The interesting question is, how do the CPUs
    interface with memory.  Presumably on-chip caches get bigger, and the
    off-chip memory buses get faster, but can they be scaled as well as
    the CPUs on chip?
    
    > I'd love to meet some of these people. ( well
    > actually I'd like to meet lots of people as I'm still new here and need
    > to get out more now that I'm working from home )
    
    Welcome to telecommuting.  I've been here 3.5 years, working with
    engineers in Silicon Valley, and making and keeping local tech
    contacts is hard.
    
    You might enjoy the CS colloquia at the UofO.  They're irregularly
    scheduled technical talks about all kinds of topics.  Send mail
    to Cheri Smith <cheri at cs.uoregon.edu> and ask to be put on the
    colloquia mailing list.
    
    -- 
    Bob Miller                              K<bob>
    kbobsoft software consulting
    http://kbobsoft.com                     kbob at jogger-egg.com
    
  • [Eug-lug] Concurrency, (free lunch is over article)



    Mike CherbaFri Jan 7 14:53:10 PST 2005

    I'm not trying to be argumentative here.  I just wanted to throw out
    some counterpoints.  Most of my opinions here come from personal
    experience in the embedded market recently.  However, some information
    was gathered from my Father, (back in school working on his PhD in Comp
    Eng.  AI and muliprocessor systems)  and my Brother (currently at
    University of Michigan finishing undergrad studies in Comp Eng).  So my
    perspective may bit a bit warped.  The best I can hope for is to call it
    like I see it.
    
    On Fri, 2005-01-07 at 13:38, Bob Miller wrote:
    > Mike Cherba wrote:
    > 
    > > I find it interesting that the article only covers one percieved facet
    > > of mutlicore performance and doesn't really cover effective division of
    > > work as the number of processors goes toward infinity.  While SMP is a
    > > good approach for 2 or even 4 processors, I do not believe it to be the
    > > best approach for numbers of cores higher than that.  Especially
    > > depending on the work to be done.  Once you have more than a few cores,
    > > you can afford to specialize the tasks of each core at an even lower
    > > level.  Certain functions work best with a single CPU focused on them.  
    > 
    > I don't understand what you're saying.  Are you advocating
    > special-purpose functional units a la PlayStation or video card, or
    > general-purpose CPUs given special jobs by system software?
    > 
    Both/either.  For example; One way we use multiple cores in our Network
    security processor designs is to dedicate cores to providing a specific
    stage of the network stack.  This allows much less cache thrashing and
    more efficient usage than if all the cores were in an SMP session and
    being used as available for whichever network processing needed to be
    done.  We can repurpose cores as needed to balance capacity with demand.
    The effectiveness of this and various other approaches does admittedly
    rely heavily on the underlying hardware architecture.  Does each core
    have its own cache?  how are bus accesses prioritiezed in hardware?  is
    this a Load/Store architecture or and EIP implimentation?  Do any of the
    cores have independant RAM?  I guess the real questin is going to be how
    to best use whatever design Intel/AMD decide to sell us.
    
    Personally I would not be sorry to see indiviual components become more
    powerful.  For example, a network card with firewalling capability built
    in which appears to the host PC as a simple NIC could work wonders in
    improving the stability of windows systems, as well as free up CPU
    cycles on the host for other purposes.  
    
    The concept I suggest is one where all cores in the chip share the same
    basic architecture.  Perhaps some have additional extensions to
    accelerate specific tasks.  There is a main SMP session hosted on a
    number of them. The Kernel uses the remaining pool of cores as dedicated
    units for specific tasks.
    
    > > My concerns are that most software developers today do not understand
    > > how to design applications which effectively make use of multiple
    > > processing units.  
    > 
    > I keep hearing this.  I personally know lots of people who can
    > effectively design for SMP, NUMA or Beowulf systems.  Also, some
    > frameworks are useful for hiding concurrency from application
    > programmers (e.g., app servers, apache+mysql).  I don't think the
    > brain shortage is as severe as it's made out to be.
    
    Perhaps you have been dealing different engineers than I have.  Or maybe
    I'm just a cynic.  I'd love to meet some of these people. ( well
    actually I'd like to meet lots of people as I'm still new here and need
    to get out more now that I'm working from home )  My personal experience
    is that most of the engineers I've met who are responsible for creating
    the mass market devices everyone buys at Walmart and Fry's are often
    stretched to their limits simply gluing together the components they
    licensed from other companies.  
    
    I will grant that abstraction and obfuscation tools can go a long way
    toward making concurrent design easier for some programmers.  However I
    would submit that these tools can only take you so far.  There is no
    substitute for understanding the layers that your work relies on.  
    
    Thanks for reading all the way to the end of my little rant.  Feel free
    to poke holes in any appropriate places.
    			-Mike
    
    
    -- 
    "The danger from computers is not that they will eventually get as smart
    as men, but that we will meanwhile agree to meet them halfway." -Bernard
    Avashi
    
  • [Eug-lug] Concurrency, (free lunch is over article)



    Bob MillerFri Jan 7 13:49:37 PST 2005

    larry price wrote:
    
    > On a practical level, I'd like to ask the list regarding your
    > experiences with multi-processing machines and the hardware and
    > software issues that go with them.
    
    Yes, I have experienced those. (-:
    
    > I've also had to deal with concurrency issues in a network context,
    > and would be interested in hearing about tools to analyse concurrent
    > processes
    > (tools including software, but mostly the math and logic tools that
    > give an insight into what is happening and why and reason about
    > systems coherently)
    
    Partly you need a coherent design (always a good idea (-: ).
    Understand what the intended state transitions are. There's a UML
    diagram for showing how processes respond to each other's messages,
    sorry I'm too lazy to look up its name.
    
    I've used many multiprocess debuggers, and none of them seemed to work
    very well.  I generally rely on log files.  If you have a coherent
    design (see above), you can log each input, each output, and each
    state transition from each thread, then filter those to see the
    interesting stuff.  With a little planning in your log message
    formats, you can make grep very useful.  Yes, grep.  How archaic is
    that?
    
    Note that syslog doesn't preserve strict ordering. (Actually,
    there is no strict ordering.)
    
    The other importand thing is to minimize design complexity.  If you
    can adopt a common pattern like a monitor, producers/consumers, or
    remote procedure call, it's easier to get it right.
    
    Another useful discipline is to strictly order resource types.  I.e.,
    always lock A before locking B.  In a complex system, there might be
    hundreds of types of locks.  By strictly ordering them, you can use
    runtime assertions that locks are never acquired out of order.  In
    fact, you can generate the ordering at runtime too.  But runtime
    checking requires stress testing.
    
    I think better tools are coming.
    
    -- 
    Bob Miller                              K<bob>
    kbobsoft software consulting
    http://kbobsoft.com                     kbob at jogger-egg.com
    
  • [Eug-lug] Concurrency, (free lunch is over article)



    Bob MillerFri Jan 7 13:38:18 PST 2005

    Mike Cherba wrote:
    
    > I find it interesting that the article only covers one percieved facet
    > of mutlicore performance and doesn't really cover effective division of
    > work as the number of processors goes toward infinity.  While SMP is a
    > good approach for 2 or even 4 processors, I do not believe it to be the
    > best approach for numbers of cores higher than that.  Especially
    > depending on the work to be done.  Once you have more than a few cores,
    > you can afford to specialize the tasks of each core at an even lower
    > level.  Certain functions work best with a single CPU focused on them.  
    
    I don't understand what you're saying.  Are you advocating
    special-purpose functional units a la PlayStation or video card, or
    general-purpose CPUs given special jobs by system software?
    
    > My concerns are that most software developers today do not understand
    > how to design applications which effectively make use of multiple
    > processing units.  
    
    I keep hearing this.  I personally know lots of people who can
    effectively design for SMP, NUMA or Beowulf systems.  Also, some
    frameworks are useful for hiding concurrency from application
    programmers (e.g., app servers, apache+mysql).  I don't think the
    brain shortage is as severe as it's made out to be.
    
    -- 
    Bob Miller                              K<bob>
    kbobsoft software consulting
    http://kbobsoft.com                     kbob at jogger-egg.com
    
  • [Eug-lug] receiving email on Debian



    Bob MillerFri Jan 7 13:01:04 PST 2005

    Allen Brown wrote:
    
    > Is there any reason to be running sendmail *and* postfix on
    > the same system?  (One of the IT managed systems here are
    > set up that way.)
    
    No, that's a bad idea.  However, note that all the MTAs install a
    program called sendmail (usually /usr/sbin/sendmail or similar)
    because one de facto standard way to enqueue mail locally is to pipe
    it to sendmail's standard input.
    
    -- 
    Bob Miller                              K<bob>
    kbobsoft software consulting
    http://kbobsoft.com                     kbob at jogger-egg.com
    
  • [Eug-lug] Concurrency, (free lunch is over article)



    John SechrestFri Jan 7 11:56:25 PST 2005

    If you look at the architecture of the old Sequent systems, 
    they were able to get linear, or near linear speedup on 
    systems up to 32 processors. They did it with a lot of cache magic.
    But they had a way that straight applications could win in this environment.
    
    I think that we generally do not do big programs in this context. We do lots
    of little things. In this way, multiple cores are a big win, assuming that
    do the right cache magic.
    
    
    
    
    
    Mike Cherba <mike.cherba at caviumnetworks.com> writes:
    
     % Just finished reading the article.  In my mind the question really
     % becomes a matter of provisioning multiple processors to the best
     % effect.  I've not played with the SMP portions of the Linux kernel as
     % I've not had a multiproc box to run it with.  However, this is an area
     % of real concern for me as newer generations of the network processors I
     % work with will have up to 16 cores within a single chip.  
     % 
     % I find it interesting that the article only covers one percieved facet
     % of mutlicore performance and doesn't really cover effective division of
     % work as the number of processors goes toward infinity.  While SMP is a
     % good approach for 2 or even 4 processors, I do not believe it to be the
     % best approach for numbers of cores higher than that.  Especially
     % depending on the work to be done.  Once you have more than a few cores,
     % you can afford to specialize the tasks of each core at an even lower
     % level.  Certain functions work best with a single CPU focused on them.  
     % 
     % My concerns are that most software developers today do not understand
     % how to design applications which effectively make use of multiple
     % processing units.  
     % 
     % Just my $.02 !
     % 		-Mike
     % 
     % -- 
     % "The meek shall inherit the Earth. The rest of us are getting the hell
     % off this rock!"
     % _______________________________________________
     % EUGLUG mailing list
     % euglug at euglug.org
     % http://www.euglug.org/mailman/listinfo/euglug
    
    -----
    John Sechrest          .         Helping people use
                            .           computers and the Internet
                              .            more effectively
                                 .                      
                                     .       Internet: sechrest at peak.org
                                          .   
                                                  . http://www.peak.org/~sechrest
    
  • [Eug-lug] Concurrency, (free lunch is over article)



    Mike CherbaFri Jan 7 11:47:50 PST 2005

    Just finished reading the article.  In my mind the question really
    becomes a matter of provisioning multiple processors to the best
    effect.  I've not played with the SMP portions of the Linux kernel as
    I've not had a multiproc box to run it with.  However, this is an area
    of real concern for me as newer generations of the network processors I
    work with will have up to 16 cores within a single chip.  
    
    I find it interesting that the article only covers one percieved facet
    of mutlicore performance and doesn't really cover effective division of
    work as the number of processors goes toward infinity.  While SMP is a
    good approach for 2 or even 4 processors, I do not believe it to be the
    best approach for numbers of cores higher than that.  Especially
    depending on the work to be done.  Once you have more than a few cores,
    you can afford to specialize the tasks of each core at an even lower
    level.  Certain functions work best with a single CPU focused on them.  
    
    My concerns are that most software developers today do not understand
    how to design applications which effectively make use of multiple
    processing units.  
    
    Just my $.02 !
    		-Mike
    
    -- 
    "The meek shall inherit the Earth. The rest of us are getting the hell
    off this rock!"
    
  • [Eug-lug] Concurrency, (free lunch is over article)



    larry priceFri Jan 7 11:30:32 PST 2005

    http://www.gotw.ca/publications/concurrency-ddj.htm
    
    I was talking about this article last night, I read it a couple of days ago 
    and it seemed important to me then. 
    
    On a practical level, I'd like to ask the list regarding your
    experiences with multi-processing machines and the hardware and
    software issues that go with them.
    
    My experience is not necessarily all that positive, 
    I've seen SMP machines crash hard because they reached inconsistent states.
    
    I've also had to deal with concurrency issues in a network context,
    and would be interested in hearing about tools to analyse concurrent
    processes
    (tools including software, but mostly the math and logic tools that
    give an insight into what is happening and why and reason about
    systems coherently)
    -- 
    http://Zoneverte.org -- information explained
    Do you know what your IT infrastructure does?
    
  • [Eug-lug] funny…



    Max LemieuxFri Jan 7 09:14:40 PST 2005

    I read that story a while back, laughed till I cried. I noticed just now 
    it has over 5000 comments! Possibly the most successful troll I've ever 
    seen. :D
    
    -Max
    
    
    Linux Rocks! wrote:
    
    >This led me to this:
    >
    >http://www.adequacy.org/public/stories/2001.12.2.42056.2147.html
    >
    >Which also was pretty funny! 
    >
    >On Friday 07 January 2005 04:03 am, Linux Rocks! wrote:
    >: So, im reading some posts on a forum, someone posts the question, what is
    >: linux. this was one of the responses:
    >:
    >:
    >: BSD, Lunix, Debian and Mandrake are all versions of an illegal hacker
    >: operation system, invented by a Soviet computer hacker named Linyos
    >: Torovoltos, before the Russians lost the Cold War. It is based on a program
    >: called "xenix", which was written by Microsoft for the US government. These
    >: programs are used by hackers to break into other people's computer systems
    >: to steal credit card numbers. They may also be used to break into people's
    >: stereos to steal their music, using the "mp3" program. Torovoltos is a
    >: notorious hacker, responsible for writing many hacker programs, such as
    >: "telnet", which is used by hackers to connect to machines on the internet
    >: without using a telephone.
    >:
    >: As funny as that was, this was under his avatar...
    >:
    >:  Even as much of the internet has grown to become a quiet, well policed
    >: suburb, a little known place called IRC remains the wild, wild west.
    >:
    >: BTW, Im having weird mousing issues with remote x sessions (like this one,
    >: im running kmail across a network), when I click, often it scrolls up super
    >: fast... impossible to control. anyone know what im talking about? solution?
    >:
    >: Jamie
    >
    >  
    >
    
    
  • [Eug-lug] funny…



    Linux Rocks!Fri Jan 7 01:15:40 PST 2005

    This led me to this:
    
    http://www.adequacy.org/public/stories/2001.12.2.42056.2147.html
    
    Which also was pretty funny! 
    
    On Friday 07 January 2005 04:03 am, Linux Rocks! wrote:
    : So, im reading some posts on a forum, someone posts the question, what is
    : linux. this was one of the responses:
    :
    :
    : BSD, Lunix, Debian and Mandrake are all versions of an illegal hacker
    : operation system, invented by a Soviet computer hacker named Linyos
    : Torovoltos, before the Russians lost the Cold War. It is based on a program
    : called "xenix", which was written by Microsoft for the US government. These
    : programs are used by hackers to break into other people's computer systems
    : to steal credit card numbers. They may also be used to break into people's
    : stereos to steal their music, using the "mp3" program. Torovoltos is a
    : notorious hacker, responsible for writing many hacker programs, such as
    : "telnet", which is used by hackers to connect to machines on the internet
    : without using a telephone.
    :
    : As funny as that was, this was under his avatar...
    :
    :  Even as much of the internet has grown to become a quiet, well policed
    : suburb, a little known place called IRC remains the wild, wild west.
    :
    : BTW, Im having weird mousing issues with remote x sessions (like this one,
    : im running kmail across a network), when I click, often it scrolls up super
    : fast... impossible to control. anyone know what im talking about? solution?
    :
    : Jamie
    
    -- 
    Let's call it an accidental feature.
    	-- Larry Wall