Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #17632

Re: malloc

Message-ID <ckc819-o5i.ln1@wilbur.25thandClement.com> (permalink)
From William Ahern <william@wilbur.25thandClement.com>
Subject Re: malloc
Newsgroups comp.lang.c
References (5 earlier) <189309be-7354-48eb-87e3-c2ccb34c1770@t2g2000yqk.googlegroups.com> <ln1uptfk3k.fsf@nuthaus.mib.org> <20120217152431.839@kylheku.com> <s85319-dhd.ln1@wilbur.25thandClement.com> <4f41306c$0$1383$4fafbaef@reader1.news.tin.it>
Date 2012-02-19 15:19 -0800

Show all headers | View raw


io_x <a@b.c.invalid> wrote:
> "William Ahern" <william@wilbur.25thandClement.com> ha scritto nel messaggio
> news:s85319-dhd.ln1@wilbur.25thandClement.com...
<snip>
> the problem is not the number of stacks
> the problem is not the few memory....
> now we have enougjht memory for doing all even 100000 threads etc
> [here there are pc with 1GB, 10GB etc cpu are always better with
> always more cores]

Let's add that up:

	100000 * (8 * 2^20) == 838860800000

That's 800GB!

The most recent server I purchased is a single-core 1Ghz Atom with 1GB of
memory. Specifically, a Soekris net6501. And I disagree that more cores is
better. I prefer scaling out rather than up, and when you have to design for
message passing anyhow the conveniences of threading can turn into
liabilities.

> if people not know how to do it, it is because use their fat languages
> and their not like of say few words to cpu for doing operations

> so for one not problem, they use the wrong solution
> 2 wrongs

Not sure what you meant here. I agree selecting the right solution (e.g.
data structure) is important. But the type of language one uses usually
doesn't have much to do with anything except personal and organizational
preference. It's rare that low-level hardware access supports a significant
algorithmic improvement, and when such possibilities do exist they can
usually be implemented in a language agnostic manner.

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

malloc jgk@panix.com (Joe keane) - 2012-02-16 21:04 +0000
  Re: malloc Devil with the China Blue Dress <chine.bleu@yahoo.com> - 2012-02-16 13:21 -0800
    Re: malloc BGB <cr88192@hotmail.com> - 2012-02-16 16:16 -0700
      Re: malloc Paavo Helde <myfirstname@osa.pri.ee> - 2012-02-17 14:46 -0600
        Re: malloc Joshua Maurice <joshuamaurice@gmail.com> - 2012-02-17 14:51 -0800
          Re: malloc BGB <cr88192@hotmail.com> - 2012-02-17 19:58 -0700
            Re: malloc Paavo Helde <myfirstname@osa.pri.ee> - 2012-02-18 02:18 -0600
              Re: malloc BGB <cr88192@hotmail.com> - 2012-02-18 01:58 -0700
              Re: malloc glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2012-02-18 15:30 +0000
            Re: malloc Kaz Kylheku <kaz@kylheku.com> - 2012-02-18 10:36 +0000
              Re: malloc BGB <cr88192@hotmail.com> - 2012-02-18 10:53 -0700
            Re: malloc William Ahern <william@wilbur.25thandClement.com> - 2012-02-18 16:43 -0800
              Re: malloc BGB <cr88192@hotmail.com> - 2012-02-18 20:03 -0700
                Re: malloc Miles Bader <miles@gnu.org> - 2012-02-19 12:49 +0900
                Re: malloc William Ahern <william@wilbur.25thandClement.com> - 2012-02-18 21:08 -0800
                Re: malloc "io_x" <a@b.c.invalid> - 2012-02-19 18:23 +0100
                Re: malloc William Ahern <william@wilbur.25thandClement.com> - 2012-02-18 21:06 -0800
                Re: malloc BGB <cr88192@hotmail.com> - 2012-02-18 23:06 -0700
      Re: malloc "Asger Joergensen" <Junk@Asger-P.dk> - 2012-02-19 15:54 +0000
        Re: malloc BGB <cr88192@hotmail.com> - 2012-02-19 09:37 -0700
    Re: malloc Eric Sosman <esosman@ieee-dot-org.invalid> - 2012-02-16 20:27 -0500
      Re: malloc Goran <goran.pusic@gmail.com> - 2012-02-16 23:40 -0800
        Re: malloc Keith Thompson <kst-u@mib.org> - 2012-02-17 02:26 -0800
          Re: malloc Goran <goran.pusic@gmail.com> - 2012-02-17 04:01 -0800
            Re: malloc Keith Thompson <kst-u@mib.org> - 2012-02-17 09:25 -0800
              Re: malloc Joshua Maurice <joshuamaurice@gmail.com> - 2012-02-17 14:49 -0800
                Re: malloc glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2012-02-18 01:43 +0000
                Re: malloc Kaz Kylheku <kaz@kylheku.com> - 2012-02-18 02:04 +0000
                Re: malloc scott@slp53.sl.home (Scott Lurndal) - 2012-02-18 03:04 +0000
                Re: malloc Robert Wessel <robertwessel2@yahoo.com> - 2012-02-17 22:15 -0600
                Re: malloc Joshua Maurice <joshuamaurice@gmail.com> - 2012-02-17 23:48 -0800
              Re: malloc Kaz Kylheku <kaz@kylheku.com> - 2012-02-17 23:29 +0000
                Re: malloc William Ahern <william@wilbur.25thandClement.com> - 2012-02-17 15:42 -0800
                Re: malloc "io_x" <a@b.c.invalid> - 2012-02-19 18:24 +0100
                Re: malloc Kleuske <kleuske@nowhere.net> - 2012-02-19 20:41 +0000
                Re: malloc James Kuyper <jameskuyper@verizon.net> - 2012-02-19 18:05 -0500
                Re: malloc "io_x" <a@b.c.invalid> - 2012-02-20 12:24 +0100
                Re: malloc Kleuske <kleuske@nowhere.net> - 2012-02-20 13:56 +0000
                Re: malloc "io_x" <a@b.c.invalid> - 2012-02-20 15:14 +0100
                Re: malloc William Ahern <william@wilbur.25thandClement.com> - 2012-02-19 15:19 -0800
        Re: malloc Eric Sosman <esosman@ieee-dot-org.invalid> - 2012-02-17 08:06 -0500
          Re: malloc Goran <goran.pusic@gmail.com> - 2012-02-18 07:57 -0800
            Re: malloc Keith Thompson <kst-u@mib.org> - 2012-02-18 10:57 -0800
            Re: malloc Eric Sosman <esosman@ieee-dot-org.invalid> - 2012-02-19 08:51 -0500
      Re: malloc Noob <root@127.0.0.1> - 2012-02-17 11:44 +0100
        Re: malloc "Joachim Schmitz" <nospam.jojo@schmitz-digital.de> - 2012-02-17 17:05 +0100
          Re: malloc pete <pfiland@mindspring.com> - 2012-02-17 11:19 -0500
            Re: malloc Noob <root@127.0.0.1> - 2012-02-17 17:30 +0100
          Re: malloc James Kuyper <jameskuyper@verizon.net> - 2012-02-17 11:31 -0500
      Re: malloc scott@slp53.sl.home (Scott Lurndal) - 2012-02-17 20:31 +0000
        Re: malloc Joshua Maurice <joshuamaurice@gmail.com> - 2012-02-18 00:01 -0800
          Re: malloc scott@slp53.sl.home (Scott Lurndal) - 2012-02-18 17:07 +0000
            Re: malloc Joshua Maurice <joshuamaurice@gmail.com> - 2012-02-18 18:14 -0800
              Re: malloc scott@slp53.sl.home (Scott Lurndal) - 2012-02-19 17:14 +0000
  Re: malloc Goran <goran.pusic@gmail.com> - 2012-02-16 23:43 -0800
  Re: malloc "io_x" <a@b.c.invalid> - 2012-02-19 16:44 +0100

csiph-web