Re: Suggestion for hammer cleanup

2010-10-18 Thread Sdävtaker
Probably it will be nicer for desktop users to have a run when
history is using more than X space than by periodic.


On Mon, Oct 18, 2010 at 02:49,  elekktrett...@exemail.com.au wrote:
 I think we definitely must have hammer cleanup not depending on periodic.
 Especially laptop/workstation users, since they may be running only couple
 of hours a day.

 The system should be able to automatically initiate hammer cleanup
 whenever it's been more than 1 day/x hours since last time it was run. It
 doesn't matter if its day or night.

 Suggestions?

 Petr





-- 
http://dfbsd.trackbsd.org.ar


Re: bio_page_alloc: WARNING emergency page allocation

2010-10-18 Thread Matthew Dillon
:bio_page_alloc: WARNING emergency page allocation
:bio_page_alloc: WARNING emergency page allocation
:bio_page_alloc: WARNING emergency page allocation
:Checking out files: 100% (30445/30445), done.
:Already on 'master'
:cd /usr/src  git pull
:fatal: Unable to look up git.dragonflybsd.org (port 9418) (hostname
:nor servname provided, or not known).
:
: Error code 1
:...
:Do I need to be worry about it?

Well, the lookup failure is a DNS issue.

You can ignore the emergency page allocation messages.  I will
remove them from the kernel, in fact.

-Matt
Matthew Dillon 
dil...@backplane.com


Packages mentioned in summary file are not on mirrors

2010-10-18 Thread Tomas Bodzar
Hi all,

2010Q2  is done by dfly on mirrors? Eg. mplayer is in summary file and
showed through pkgin or pkg_search, but install is not possible as
it's not in mirror.
Some license issues, sure, but why it's in summary file?

-- 
“If you’re good at something, never do it for free.” —The Joker



sound no longer works for some programs

2010-10-18 Thread Pierre Abbat
I open a sound file in Wavesurfer and attempt to play it and get silence. It 
used to work months ago. I try to play a MIDI file in Timidity and it 
says Couldn't open output device. XMMS still works, as does catting 
to /dev/dsp. Any idea what's wrong? I'm not sure what the sound card is, but 
there is no /dev/sequencer (which means KMid doesn't work).

Pierre
-- 
La sal en el mar es más que en la sangre.
Le sel dans la mer est plus que dans le sang.



Re: Is Citrix client working on dfly?

2010-10-18 Thread Chris Turner

Tomas Bodzar wrote:
  However it was still not running so I dived in to the script and found

that there is test for OS. This test is made by 'uname -s' and case
for BSD systems is ...*BSD), but DragonflyBSD shows DragonFly. So
I modified it directly in script and after that installation went fine
and without problems. I will test real funcionality tomorrow, but I


It's really amazing how much stuff this fixes,
for the record - if anyone is thinking porting stuff to dragonfly
is always tough - its not (always, that is)

definately worth a 2 minute grep through any broken builds
for something like 'FreeBSD' (NetBSD, OpenBSD, etc, etc)
before giving up on making software 'X' work on DragonFly

little programming knowledge required

/2c



Re: Suggestion for hammer cleanup

2010-10-18 Thread Chris Turner

elekktrett...@exemail.com.au wrote:

Suggestions?


quick-fix / hack wise -

probably setup some job to run way more often
that checks the status  makes a determination -
or move the job to something like anacron, etc

although, in a laptop situation - you might want
to manage this manually - because the heavy work
from reblocking, etc could easily suck the juice
out of your battery when you dont want it..








Re: Suggestion for hammer cleanup

2010-10-18 Thread Samuel J. Greear
On Mon, Oct 18, 2010 at 4:06 PM, Chris Turner
c.tur...@199technologies.org wrote:
 elekktrett...@exemail.com.au wrote:

 Suggestions?

 quick-fix / hack wise -

 probably setup some job to run way more often
 that checks the status  makes a determination -
 or move the job to something like anacron, etc

 although, in a laptop situation - you might want
 to manage this manually - because the heavy work
 from reblocking, etc could easily suck the juice
 out of your battery when you dont want it..


Until / unless we have the disk scheduler tuned to a point that we can
just run a prunerandreblockerd all the time, I think it would be
sufficient (and in my opinion, preferred) to simply warn the
administrator based on some metric, time since last reblock, egregious
amount of storage used by history, low amount of free disk space,
etc., or some combination, if it is to be on by default.

... That is, if we do anything at all. I think making it clear in the
HAMMER documentation that the periodic maintenance must be performed,
and why, should be sufficient. I do not feel that it is terribly
obvious right now.

That said, I think it would be fine to commit one or more optional
stopgap measures/scripts to the RC system, for mobile users and etc.,
as long as it is well documented that they may go away if a better
solution is developed or derived.

If there were a consensus, it is possible we could see about getting a
script or two written for RC and/or documentation updates made as a
part of Google Code-In, if DragonFly is accepted. Assuming there are
no volunteers participating in this thread.

Sam


Re: sound no longer works for some programs

2010-10-18 Thread Chris Turner

Pierre Abbat wrote:
I open a sound file in Wavesurfer and attempt to play it and get silence. It 
used to work months ago. I try to play a MIDI file in Timidity and it 
says Couldn't open output device. XMMS still works, as does catting 
to /dev/dsp. Any idea what's wrong? I'm not sure what the sound card is, but 
there is no /dev/sequencer (which means KMid doesn't work).


Pierre


no idea about this particular app -
but I do know lots of things
are gradually moving to jackd and/or pulse audio,
(maybe) with fall back support for traditional OSS/(alsa in the linux 
case) -


Have you run it from the command line / checked any arguments there?

I wasn't able to tell much from my build -
it looks like it uses: http://www.speech.kth.se/snack/ for the
sound routines - that page shows an example that appears
to run (but not work, with no audio errors) on my i386/2.6
system as below -

Perhaps a dig through the snack sources are in order?

-- 8 --

$ cat /tmp/tst.tcl
#! /usr/pkg/bin/tclsh

package require snack

snack::sound snd
snd read /path/to/some.wav
snd play



Re: Suggestion for hammer cleanup

2010-10-18 Thread Chris Turner

Samuel J. Greear wrote:

That said, I think it would be fine to commit one or more optional
stopgap measures/scripts to the RC system, for mobile users and etc.,
as long as it is well documented that they may go away if a better
solution is developed or derived.


not to flamebait or something - but:

wouldn't the system crontab be a better place?
or perhaps create an /etc/periodic/hourly ?

the 'newsyslog' is in /etc/crontab which is the only hourly
job I can think of off hand..

the script can still of course source rc.conf or something
to configure the job if the job is enabled by default





Re: Suggestion for hammer cleanup

2010-10-18 Thread Samuel J. Greear
On Mon, Oct 18, 2010 at 4:39 PM, Chris Turner
c.tur...@199technologies.org wrote:
 Samuel J. Greear wrote:

 That said, I think it would be fine to commit one or more optional
 stopgap measures/scripts to the RC system, for mobile users and etc.,
 as long as it is well documented that they may go away if a better
 solution is developed or derived.

 not to flamebait or something - but:

 wouldn't the system crontab be a better place?
 or perhaps create an /etc/periodic/hourly ?

 the 'newsyslog' is in /etc/crontab which is the only hourly
 job I can think of off hand..

 the script can still of course source rc.conf or something
 to configure the job if the job is enabled by default


Sure, my only real point was that it should be a knob that users have
to turn on (not on by default). I do not know what the precedent is
for periodic/rc cross-pollination.

Sam


Re: Suggestion for hammer cleanup

2010-10-18 Thread elekktretterr
What about hammerd?

* Starts when system starts

* Wakes up every 10 seconds or so to check current system load/memory
usage to estimate if its appropriate to run a cleanup operation at this
time.

* Can have a text file configuration where you can specify maximum
size(GB) of history per PFS or % of disk space

* Remembers last time it was run (stores information on disk in some text
file)

* Maybe it can detect if it's a laptop and running on battery to defer
cleanup till power is plugged in?

The daemon itself would be fairly inexpensive to run.

Petr



Re: Packages mentioned in summary file are not on mirrors

2010-10-18 Thread Justin C. Sherrill
On Mon, October 18, 2010 9:50 am, Tomas Bodzar wrote:
 Hi all,

 2010Q2  is done by dfly on mirrors? Eg. mplayer is in summary file and
 showed through pkgin or pkg_search, but install is not possible as
 it's not in mirror.
 Some license issues, sure, but why it's in summary file?

Usually, this happens because the file builds during the bulk build, but
there's some restriction like NO_BIN_ON_FTP caused by how it's licensed
that means it can't be uploaded.  I don't see anything for that when
looking through the Makefiles for that or for mplayer-common, which it
depends on.

It's also not listed as something that failed building, which makes sense
if it's in the summary.  I don't have an immediate answer for this, but I
am starting a new set of build builds now; it may become clear with this
new build.  (or it'll all magically work.  And I'll get my own pet pony
that farts rainbows. Hope springs eternal.)



Re: sound no longer works for some programs

2010-10-18 Thread Pierre Abbat
On Monday 18 October 2010 18:34:54 Chris Turner wrote:
 no idea about this particular app -
 but I do know lots of things
 are gradually moving to jackd and/or pulse audio,
 (maybe) with fall back support for traditional OSS/(alsa in the linux
 case) -

What's jackd?

Is MIDI I/O supported in the kernel? The driver is snd_ich; does that kind of 
card support MIDI?

Pierre
-- 
Don't buy a French car in Holland. It may be a citroen.