search for: pageout

Displaying 20 results from an estimated 33 matches for "pageout".

2005 Dec 08
1
A few questions how to use libogg
1.) after initializing a ogg_stream_state may I just keep calling ogg_stream_packetin with valid ogg_packet's until no more ogg_packets needs to be added? Or do I need to call ogg_stream_pageout after every ogg_stream_packetin? Iaw may I delay calling ogg_stream_pageout until there are no more packets to be added? 2.) I assume I have call ogg_stream_pageout until no more pages can be created and then call ogg_stream_flush if there are still bits left to be 'paged'? 3.) Do I n...
2010 Jul 24
0
ARC/VM question
I have a semi-theoretical question about the following code in arc.c, arc_reclaim_needed() function: /* * take ''desfree'' extra pages, so we reclaim sooner, rather than later */ extra = desfree; /* * check that we''re out of range of the pageout scanner. It starts to * schedule paging if freemem is less than lotsfree and needfree. * lotsfree is the high-water mark for pageout, and needfree is the * number of needed free pages. We add extra pages here to make sure * the scanner doesn''t start up while we''re freeing me...
2009 Feb 24
0
any help with pyogg and pyvorbis?
...break vd.write_wav(data) #print 100.0 * total / inwav.getnframes() vb = vd.blockout() while vb: vb.analysis() vb.addblock() op = vd.bitrate_flushpacket() while op: os.packetin(op) while not eos: og = os.pageout() if not og: break og.writeout(fout) eos = og.eos() op = vd.bitrate_flushpacket() vb = vd.blockout() _________________________ Only knowing very few about C and just something about the vorbis-codec, I found that the problem o...
2005 Jun 22
2
ogg_sync_pageout
It seems to me that running ogg_sync_pageout doesn't automatically advance the page. This is good if you haven't worked with the given page, makes coding somewhat easier. However, when does a page advance. Is it after a call to ogg_stream_pagein? On a side note, I need to do seeking on top of libvorbis, I'd love to use vorbisfile...
2007 Aug 09
3
memory allocation
...lization per process in percent. this output is refreshed every 2 seconds for example. now i want to extend this script with the output of the allocated bytes of memory per process. how could i display this using dtrace( it has to be dtrace )? i found scripts that gives information about swap and pageout/in and so on, but i found nothing for the bytes per process in ram. Do you know any example scripts for this ? thank you! -- This message posted from opensolaris.org
2006 Nov 02
11
ZFS and memory usage.
ZFS works really stable on FreeBSD, but I''m biggest problem is how to control ZFS memory usage. I''ve no idea how to leash that beast. FreeBSD has a backpresure mechanism. I can register my function so it will be called when there are memory problems, which I do. I using it for ARC layer. Even with this in place under heavy load the kernel panics, because memory with KM_SLEEP
2005 Jan 02
12
[XEN] using shmfs for swapspace
hi, am starting to play with XEN - the virtualisation project (http://xen.sf.net). i''ll give some background first of all and then the question - at the bottom - will make sense [when posting to lkml i often get questions asked that are answered by the background material i also provide... *sigh*] each virtual machine requires (typically) its own physical ram (a chunk of the
2010 Dec 01
1
OggFLAC streaming is systemically broken.
...ge. The epic kludge solution is to just never let there be any perfect silence, not even for a few ms, plug in an old am radio and crank it to just barely audible and add that to the stream. The hackfix, is to disable constant subframes, and flush any packet less than say 700 bytes, otherwise use pageout as normal. The sustainable solution would probably be to add an option to libflac to force flush the stream after X number of samples, and then fix all of the clients. Then live the dream of streaming lossless audio. Here is my hackfix: https://github.com/oneman/libflac/commit/67e13364032404ebc1...
2007 Feb 16
1
AW: How to do Theora playback efficiently ?
...these ogg_stream_pagein() calls take so much time... sometimes more than theora decoding. Now I try to use a second thread which task is to store as many pages as needed, to have at least one audio page ready. I think this is a good attempt but currently it is not working right... because ogg_sync_pageout() can only reserve memory for 2 pages... nothing about those things are in the ogg documentation, that's very frustrating. Storing packets makes so sense in my opinion... because if there are no new vorbis pages (only all those theora pages) you don't get any new packets and so run out of d...
2012 Feb 03
2
Hanging -- please help decipher event report
...plications/R64.app/Contents/MacOS/R Version: R 2.11.1 GUI 1.34 Leopard build 64-bit (5589) Parent: launchd [95] PID: 37306 Event: hang Duration: 5.96s (sampling started after 2 seconds) Steps: 19 (100ms sampling interval) Pageins: 88 Pageouts: 0 Process: R [37306] Path: /Applications/R64.app/Contents/MacOS/R UID: 501 Thread eef8d9 DispatchQueue 1 User stack: 19 start + 52 (in R) [0x100001a74] 19 main + 844 (in R) [0x100001dec] 19 -[REngine runREPL] + 102 (in R) [0x10001...
2004 Dec 15
0
Re: Fallback trouble with icecast 2.1kh
...e client receives data, but it seams those data are lacking an end of stream or end of packet tag. Trying to be clearer, here is an extract of the algorithm, with in UPPERCASE the value of the conditions. while (eos == 0) { while (eos == 0) { int result = oy.pageout(og); if (result == 0) SOMETIMES FALSE break; // need more data if (result == -1) { // missing or corrupt data at this page position } else { os.pagein(og); while (true) {...
2002 Sep 28
0
A few doc snafus
...e reading some of the documetation a little while back (verified they're still in cvs) ... vorbis-ogg.html: the 9th bullet under Encapsulation has a couple of typos: 'contining' and 'no'. ogg-stream-flush.html: the function declaration in the gray box reads "ogg_stream_pageout". ogg-stream-pageout.html: Lists '0' as a return value twice. <p> -- -:-:- David K. Gasaway -:-:- XNS : =David K Gasaway -:-:- Email: dave@gasaway.org -:-:- Web : dave.gasaway.org <p>--- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: htt...
2006 Aug 24
1
trying to encode/decode videos using libtheora
I'm trying to learn how to use libtheora but I'm having some problems: I believe to have encoded a video, but I can't decode it. I've tried 2 things: to record a .ogg file and to write a libtheora decoder, using the encoded ogg_packets present in memory. The source code is here: http://opensvn.csie.org/ribamar/projects/streaming/cvaenc.c (it has a makefile in
2010 Aug 18
0
Digest, Vol90, Issue18 does not display properly
.../Applications/R.app/Contents/MacOS/R Version: R 2.11.1 GUI 1.34 Leopard build 32-bit (5589) Parent: launchd [146] PID: 666 Event: hang Duration: 3.41s (sampling started after 2 seconds) Steps: 14 (100ms sampling interval) Pageins: 0 Pageouts: 0 Process: R [666] Path: /Applications/R.app/Contents/MacOS/R UID: 502 Process: AirPort Base Station Agent [174] Path: /System/Library/CoreServices/AirPort Base Station Agent.app/Contents/MacOS/AirPort Base Station Agent UID:...
2019 Mar 07
0
[RFC PATCH V2 5/5] vhost: access vq metadata through kernel virtual address
...t in the invalidate, Jeson can tell if I misread something there. For transient data passing through the ring, nobody should care if it's lost. It's not user-journaled anyway so it could hit the disk in any order. The only reason to flush it to do disk is if there's memory pressure (to pageout like a swapout) and in such case it's enough to mark it dirty only in the mmu notifier invalidate like you pointed out (and only if GUP was called with FOLL_WRITE). > O_DIRECT can suffer from the same issue but the race window for that > is small enough that it is unlikely it ever happen...
2019 Mar 07
3
[RFC PATCH V2 5/5] vhost: access vq metadata through kernel virtual address
On Thu, Mar 07, 2019 at 02:38:38PM -0500, Andrea Arcangeli wrote: > On Thu, Mar 07, 2019 at 02:09:10PM -0500, Jerome Glisse wrote: > > I thought this patch was only for anonymous memory ie not file back ? > > Yes, the other common usages are on hugetlbfs/tmpfs that also don't > need to implement writeback and are obviously safe too. > > > If so then set dirty is
2019 Mar 07
3
[RFC PATCH V2 5/5] vhost: access vq metadata through kernel virtual address
On Thu, Mar 07, 2019 at 02:38:38PM -0500, Andrea Arcangeli wrote: > On Thu, Mar 07, 2019 at 02:09:10PM -0500, Jerome Glisse wrote: > > I thought this patch was only for anonymous memory ie not file back ? > > Yes, the other common usages are on hugetlbfs/tmpfs that also don't > need to implement writeback and are obviously safe too. > > > If so then set dirty is
2007 Jan 02
2
Storing RTP in Ogg
Hello learned ogg folks, and welcome to 2007. Sadly I am back at work already, and I'd like to seek your advice. We need to store raw RTP packets on disk as they are received from the network. There will be multiple streams of media--at least one audio and one video--that all need to go in the same file. We have decided to use ogg because it is the simplest container format that meets our
2006 Jun 05
3
ogg only encoding
So, I abandoned the hope of using the ogg python bindings to do pure ogg container encoding. I started looking at the libogg in the hopes of retooling the bindings to follow a better object model and it actually looks like the problem is down in libogg, not the bindings. Am I crazy or does libogg rely on libvorbis to return ogg_packets, and that there are no functions that will build an ogg_packet
2019 Mar 08
2
[RFC PATCH V2 5/5] vhost: access vq metadata through kernel virtual address
...e vhost wrote something there. Thanks > > For transient data passing through the ring, nobody should care if > it's lost. It's not user-journaled anyway so it could hit the disk in > any order. The only reason to flush it to do disk is if there's memory > pressure (to pageout like a swapout) and in such case it's enough to > mark it dirty only in the mmu notifier invalidate like you pointed out > (and only if GUP was called with FOLL_WRITE). > >> O_DIRECT can suffer from the same issue but the race window for that >> is small enough that it is u...