I have an app that run's a process every 20 seconds during the day...
is there a way to force it to use real memory rather than virtual?
because it runs every 20 seconds, and is defaulting to normal memory
allocation,
it has a lot of disk swapping in and out, many many times during the
On Oct 10, 2009, at 7:37 AM, jon wrote:
I have an app that run's a process every 20 seconds during the day...
is there a way to force it to use real memory rather than virtual?
because it runs every 20 seconds, and is defaulting to normal
memory allocation,
it has a lot of disk swapping
it loads a website, to see if there are changes to the website, it
then does a lot of work, the large memory things, like the
webView are just one instance, and are not deallocating... (uses
just that one instance over and over again, not making new ones) so
that i don't think is
Le 10 oct. 2009 à 17:24, jon a écrit :
it loads a website, to see if there are changes to the website, it
then does a lot of work, the large memory things, like the
webView are just one instance, and are not deallocating... (uses
just that one instance over and over again, not
exactly, I look at Activity monitor, disk Activity and i can
see a spike of disk data read/writes every 20 seconds.
Jon.
On Oct 10, 2009, at 9:31 AM, Jean-Daniel Dupas wrote:
What is real memory ? Do you want to address the RAM directly
without any virtual to physical mapping ?
On Oct 10, 2009, at 8:24 AM, jon wrote:
it loads a website, to see if there are changes to the website, it
then does a lot of work, the large memory things, like the
webView are just one instance, and are not deallocating... (uses
just that one instance over and over again, not
On Sat, Oct 10, 2009 at 8:34 AM, jon trambl...@mac.com wrote:
is there a way to force it to use real memory rather than virtual?
This is, as stated, nonsensical. Your process works in its own independent
virtual memory space that is mapped to physical RAM as needed by the virtual
memory system.
no, no control over the website, but on webView i turned off all
the java script and flash and stuff, so that helps with the speed,
not with it using virtual memory every 20 seconds, and it does need
to be 20 seconds.
Jon.
On Oct 10, 2009, at 9:44 AM, Michael Dautermann wrote:
Is
On 10 Oct 2009, at 17:44, jon wrote:
no, no control over the website, but on webView i turned off all
the java script and flash and stuff, so that helps with the speed,
not with it using virtual memory every 20 seconds, and it does need
to be 20 seconds.
So if you change your
Ok, let me re-word it then, is there a way i can keep a process from
using Disk writes as a form of it's own memory use? I already
know that it is a memory thing since the program never uses the
disk to write out any files. (during the process)... nor use the disk
in any other
On Sat, Oct 10, 2009 at 12:53 PM, jon trambl...@mac.com wrote:
there are no files being accessed, only the webView
WebView can access files on its own. Have you disabled cacheing?
sherm--
--
Cocoa programming in Perl: http://camelbones.sourceforge.net
Le 10 oct. 2009 à 18:53, jon a écrit :
Ok, let me re-word it then, is there a way i can keep a process
from using Disk writes as a form of it's own memory use? I
already know that it is a memory thing since the program never
uses the disk to write out any files. (during the
On Oct 10, 2009, at 9:53 AM, jon wrote:
Ok, let me re-word it then, is there a way i can keep a process
from using Disk writes as a form of it's own memory use? I
already know that it is a memory thing since the program never
uses the disk to write out any files. (during the
ok thanks, i was pretty sure it is normal behavior i am only
asking if there is away around that particular behavior, and your
answer was what i figured might be the case...
so i am a little clearer, it is normal for apps to use disk IO in
the way we are describing, even if
jon write:
there are no files being accessed, only the webView that is
it's source of data it's only source. it works on that data,
finishes, and does nothing for 20 more seconds. (a trigger can
happen, but even if there was no trigger, the disk writes are there)
Consider using
I could use an explanation then, if you go into activity monitor
you will see a heading of real memory and virtual memory.
specifically for all the current Processes..
what does Apple mean by real memory?in that, I might see why
you asked the question?and why you think
Jon, please use Instruments.app (and/or various related tools; Activity
Monitor.app, Shark.app, sample, top, fs_usage, vm_stat, vmmap/vmmap64, etc.)
to understand what your process it doing both in terms of IO, memory
utilization/allocations and even CPU time. Using those tools you can
understand
oh yes, i plan on optimization, but this was not the original
question, not one of how should i optimize, it was one of can i
keep my process from using Disk I0, as a means of it's memory
use?. to save on wear and tear of the disk for this particular
process.
On Oct 10, 2009, at
On Sat, Oct 10, 2009 at 10:55 AM, jon trambl...@mac.com wrote:
oh yes, i plan on optimization, but this was not the original question,
not one of how should i optimize, it was one of can i keep my process
from using Disk I0, as a means of it's memory use?. to save on wear and
tear of
On Sat, Oct 10, 2009 at 10:48 AM, jon trambl...@mac.com wrote:
I could use an explanation then, if you go into activity monitor you
will see a heading of real memory and virtual memory. specifically
for all the current Processes..
what does Apple mean by real memory?in that, I
Hi Bill, in this theme of normal behavior, maybe this would make
what i'm asking more clear.
in an exercise of thought, if you wrote an app, and the only thing
it did was put up a window permanently (for the run of it's process
life), with a single webview in it, and hardwired a
ok, I have Activity monitor open, particularly to the disk
activity tab, and the IO checked, as i said before, and i can see
Disk writes every 20 secs.is there a clearer way to demonstrate
that Disk IO is happening? am i fulling my self by looking at this
tool?
Jon.
On Oct 10,
If it was using a web cache, then yes. A webview uses webkit. Which
uses URL caches and web caches. There are many things going on here.
Way more than just one little view. It could simply be checking for
the data in a cache, for example. You don't know because its not your
code. I just
No, Activity Monitor as not a developer tool. As I said (and other
too), uses proper tools. Instrument, may be a good starting point.
Le 10 oct. 2009 à 20:12, jon a écrit :
ok, I have Activity monitor open, particularly to the disk
activity tab, and the IO checked, as i said before, and
ahh, ok thanks, that helps a lot.
Jon.
On Oct 10, 2009, at 12:30 PM, Alex Kac wrote:
If it was using a web cache, then yes.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the
On Sat, Oct 10, 2009 at 11:08 AM, jon trambl...@mac.com wrote:
Hi Bill, in this theme of normal behavior, maybe this would make what i'm
asking more clear.
in an exercise of thought, if you wrote an app, and the only thing it did
was put up a window permanently (for the run of it's
thanks for doing that, it helped, cacheing hmmm... i don't think
there is away around this, i need a fresh load to see if the data
has changed each time at the website.It appears that disk IO is
here to stay.
Jon.
On Oct 10, 2009, at 12:57 PM, Shawn Erickson wrote:
Which is
oh wait, that means i can turn off cacheing, I at least can see if
that will help, I'll go read up on how to turn off cacheing..
Jon.
On Oct 10, 2009, at 12:57 PM, Shawn Erickson wrote:
Which is exactly what I expected (and others) given the fact that by
default the URL loading
On Sat, Oct 10, 2009 at 12:04 PM, jon trambl...@mac.com wrote:
thanks for doing that, it helped, cacheing hmmm... i don't think there
is away around this, i need a fresh load to see if the data has changed
each time at the website.It appears that disk IO is here to stay.
Stepping
I take the info off the website, data if you like... data that
changes or could change at any given time, every second even
and process it, and trigger an event if the data is to my liking.
how would i get the data off a website, formated in the only way i
know it? which is
On Sat, Oct 10, 2009 at 12:12 PM, jon trambl...@mac.com wrote:
I take the info off the website, data if you like... data that changes
or could change at any given time, every second even and process it,
and trigger an event if the data is to my liking.
how would i get the data off
I meant to ask if you are accessing the HTTP or using WebKit's DOM API to
get at the pages content? Basically how are using using WebView to access
the data you need.
-Shawn
On Sat, Oct 10, 2009 at 12:25 PM, Shawn Erickson shaw...@gmail.com wrote:
On Sat, Oct 10, 2009 at 12:12 PM, jon
A couple of points…
[1] Yes, it is possible to allocate wired memory that is forced to
stay in physical RAM and never be paged to disk. But this ability is
pretty much used only by low-level software like kernel extensions,
device drivers, and real-time audio processors. These are things
Please take this off list.
Thanks,
Tom Wetmore
On Oct 10, 2009, at 3:28 PM, Shawn Erickson wrote:
I meant to ask if you are accessing the HTTP or using WebKit's DOM
API to
get at the pages content? Basically how are using using WebView to
access
the data you need.
-Shawn
On Sat, Oct 10,
ok, i'll do research on these..
Jon.
On Oct 10, 2009, at 1:25 PM, Shawn Erickson wrote:
It sounds like you need to get at the HTTP content itself and pull
data out of that, right? If all you need is the HTTP content you can
drop down to things like Foundation's URL Loading System [1],
using DOM,
Jon.
On Oct 10, 2009, at 1:28 PM, Shawn Erickson wrote:
using WebKit's DOM API to get at the pages content?
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
oh... that is good to know... hmm, well it looks like i need to go
lower in the mechanism, stuff i don't know anything about, so i'll
do research on the best way to get the info off the website at a lower
level.
Jon.
On Oct 10, 2009, at 1:33 PM, Jens Alfke wrote:
Many large websites
On Oct 10, 2009, at 12:35 PM, Thomas Wetmore wrote:
Please take this off list.
Why? This seems like a relevant discussion for cocoa-dev. Just because
you're not interested in it doesn't make it off-topic.
—Jens___
Cocoa-dev mailing list
wait, if CFNetwork is doing the caching, I would need to go lower
to avoid it? what would i use to get html or xml type of info off
the website, without giving the website pause for what i am doing?
(or best guess on what a website might consider bad behavior)
Jon.
On Oct 10,
oh i see (too late for that last post of mine) that you are
recommending NSURLConnection... I'll look into that...
You are right, i am probably not needing WebView, i only am using it,
because that is what i founddrives me crazy the
documentation... it is there, but you have
On Sat, Oct 10, 2009 at 2:56 PM, jon trambl...@mac.com wrote:
wait, if CFNetwork is doing the caching, I would need to go lower to
avoid it?
If I load CNN.com right now, I fetch the HTML page, plus at least 127
image, CCS, and javascript files. So if you use something more low
level, like
On Oct 10, 2009, at 3:35 PM, Thomas Wetmore wrote:
Please take this off list.
That's an awfully presumptuous demand, don't you think?
It's a relevant and interesting Cocoa topic. I've been following it
with interest and it's quite obvious others have as well.
--
I.S.
On Oct 10, 2009, at 12:41 PM, jon wrote:
oh... that is good to know... hmm, well it looks like i need to
go lower in the mechanism, stuff i don't know anything about, so
i'll do research on the best way to get the info off the website at
a lower level.
RSS or Atom feeds are often
that looks promising...
thanks,
Jon.
On Oct 10, 2009, at 3:26 PM, Jens Alfke wrote:
You can check the Last-Modified and ETag headers in the
NSHTTPURLResponse object and compare them to what you got last time;
___
Cocoa-dev mailing list
On Oct 10, 2009, at 1:01 PM, jon wrote:
drives me crazy the documentation... it is there, but you have
to know what to look for before you ever go down the correct tangent.
There's certainly a lot of stuff, and it takes a while to learn what's
in there. :/ The good part is that all
i was using a notification that was standard that told me when the
page finished loading... does this have the same sort of mechanism?
(or need it) when fetching the page?
On Oct 10, 2009, at 3:26 PM, Jens Alfke wrote:
If you can't use a feed, use NSURLRequest to fetch the page
On Oct 10, 2009, at 2:54 PM, jon wrote:
i was using a notification that was standard that told me when the
page finished loading... does this have the same sort of
mechanism? (or need it) when fetching the page?
NSURLConnection has a delegate object you can set, which will get
47 matches
Mail list logo