• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Super slow task performance...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Super slow task performance...


  • Subject: Super slow task performance...
  • From: Jerry LeVan <email@hidden>
  • Date: Thu, 16 Sep 2004 18:05:34 -0400

Hi,

I have an application that uses Andreas Mayers task wrapper
to communicate with with a subprocess.

Today I noticed that if the subprocess generated a lot of
output that the task would dramatically slow down...

More specifically I am talking to a postgresql data base
via psql, the spawned command is basically

    psql -c"the command"

The task connects to the db and sends the command
and writes the command output to stdout which the task wrapper
captures and I display in a scrolled text view.

The subtask will make a connection to the database using
unix sockets in the above case, if my app connects to the
db via tcp, psql will also use tcp.

One of the commands I tried will generate a 3MB file,
When run in Unix socket mode, VM will start ballooning
and cpu climbs to close to 100 percent and output echoed
back to my display basically stops.

If all connections are via tcp memory usage grows very
slowly but cpu rapidly increase ~90% and screen output
slows to a crawl...

If I cut the size of the output file to 600k, the command
will complete in about 16 seconds, doubling the size to 1.2MB
takes 280 seconds!

If I run the command directly in psql they rip right along,
no problem...

The problem seems to be caused by largish output of the
of the subtask...

Any suggestions?

Jerry

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: build numbers
  • Next by Date: Re: implementing dataWithContentsOfMemory as NSData category
  • Previous by thread: Re: [Somewhat-OT]?Unexpected behaviour of variable argument lists
  • Next by thread: learning Cocoa bindings?
  • Index(es):
    • Date
    • Thread