Re: boot menu option to disable graphics mode

2012-06-07 Thread Gleb Kurtsou
On (07/06/2012 11:56), Andriy Gapon wrote: on 07/06/2012 11:47 Konstantin Belousov said the following: On Thu, Jun 07, 2012 at 10:45:26AM +0300, Andriy Gapon wrote: It's long been a wish of mine to have an ability to decide at boot time that a system should boot in console-only mode.

Re: [Hash function Ipv4]

2012-06-03 Thread Gleb Kurtsou
On (02/06/2012 20:14), enrico d'urso wrote: Hi, I'm looking for an Hash function for Ipv4 addresses. What are good ones? Have you tried good general purpose hash functions like murmur3 or cityhash? Another option is to use hash function that is bijection on integers and exploit this fact

Re: NTFS GSoC Project Idea

2012-03-28 Thread Gleb Kurtsou
On (28/03/2012 18:43), Pedro Giffuni wrote: Hello Efstratios ; In general, I agree with Gleb that you should start from the Apple Darwin port instead of spending time on the current FreeBSD driver. I'd suggest submitting two proposals -- too much depends on a mentor availability for a

Re: NTFS GSoC Project Idea

2012-03-27 Thread Gleb Kurtsou
On (26/03/2012 21:13), Efstratios Karatzas wrote: Greetings, I am a FreeBSD GSoC 2010 student, looking to participate in this years GSoC. The project that I wish to work on is the FreeBSD NTFS driver. I 've already discussed my project idea with Attilio@ who suggested that I forward my

Re: small change to du, so it will accepts unit suffixes for negative thresholds

2012-03-02 Thread Gleb Kurtsou
On (01/03/2012 23:38), Alexander Best wrote: hi there, i just noticed that du will not accepts something like the following: du -t-500M whereas du -t500M will work. i've attached a patch, which makes unit suffixes in connection with negative thresholds possible. Good catch,

Re: devd based AUTOMOUNTER

2012-02-18 Thread Gleb Kurtsou
On (18/02/2012 10:48), vermaden wrote: Added a check if ntfs-3g is available, if not then mount_ntfs is used instead. Added deleting of empty directories at ${MNTPREFIX}. Added ${MNTPREFIX} to be set to /mnt or /media according to preference #! /bin/sh

Re: gcc 4.2 miscompilation with -O2 -fno-omit-frame-pointer on amd64

2011-12-09 Thread Gleb Kurtsou
On (09/12/2011 16:15), Rafal Jaworowski wrote: On 2011-12-08, at 17:53, Nathan Whitehorn wrote: On 12/08/11 03:01, Piotr Nowak wrote: We're working on PowerPC target using GCC 4.2.1 and FreeBSD 6.1. It seems like we have similar problem. In our case GCC sometimes very unfortunately

Re: gcc 4.2 miscompilation with -O2 -fno-omit-frame-pointer on amd64

2011-12-09 Thread Gleb Kurtsou
Please find test case and test results attached. (gcc-test1.shar.txt) The long story short: only gcc-4.2 is affected, gcc 3.4, 4.4 and 4.6 are ok. clang is ok. (test-cc.txt) Nearly all of the workarounds I used in original test doesn't work in this test case (see #ifdef BAD_FIX in sources). gcc

Re: gcc 4.2 miscompilation with -O2 -fno-omit-frame-pointer on amd64

2011-12-08 Thread Gleb Kurtsou
On (08/12/2011 10:01), Piotr Nowak wrote: We're working on PowerPC target using GCC 4.2.1 and FreeBSD 6.1. It seems like we have similar problem. In our case GCC sometimes very unfortunately optimize code with -fno-omit-frame-pointer. Example shown below covers file sys/powerc/booke/pmap.c

Re: gcc 4.2 miscompilation with -O2 -fno-omit-frame-pointer on amd64

2011-12-02 Thread Gleb Kurtsou
On (02/12/2011 01:56), Stanislav Sedov wrote: On Sat, 19 Nov 2011 12:01:50 +0200 Gleb Kurtsou gleb.kurt...@gmail.com mentioned: Hi, I was lucky to write a bit of code which gcc 4.2 fails to compile correctly with -O2. Too keep long story short the code fails for gcc from base system

Re: gcc 4.2 miscompilation with -O2 -fno-omit-frame-pointer on amd64

2011-11-20 Thread Gleb Kurtsou
On (19/11/2011 09:11), m...@freebsd.org wrote: On Sat, Nov 19, 2011 at 8:19 AM, Gleb Kurtsou gleb.kurt...@gmail.com wrote: On (19/11/2011 07:26), m...@freebsd.org wrote: On Sat, Nov 19, 2011 at 2:01 AM, Gleb Kurtsou gleb.kurt...@gmail.com wrote: Hi, I was lucky to write a bit

Re: gcc 4.2 miscompilation with -O2 -fno-omit-frame-pointer on amd64

2011-11-20 Thread Gleb Kurtsou
On (20/11/2011 01:57), Alexander Best wrote: On Sat Nov 19 11, Gleb Kurtsou wrote: On (19/11/2011 12:25), Alexander Best wrote: On Sat Nov 19 11, Gleb Kurtsou wrote: Hi, I was lucky to write a bit of code which gcc 4.2 fails to compile correctly with -O2. Too keep long story

gcc 4.2 miscompilation with -O2 -fno-omit-frame-pointer on amd64

2011-11-19 Thread Gleb Kurtsou
Hi, I was lucky to write a bit of code which gcc 4.2 fails to compile correctly with -O2. Too keep long story short the code fails for gcc from base system and last gcc 4.2 snapshot from ports. It works with gcc 4.3, gcc 4.4 on FreeBSD and Linux. Clang from base is also good. -O and -Os

Re: gcc 4.2 miscompilation with -O2 -fno-omit-frame-pointer on amd64

2011-11-19 Thread Gleb Kurtsou
On (19/11/2011 12:25), Alexander Best wrote: On Sat Nov 19 11, Gleb Kurtsou wrote: Hi, I was lucky to write a bit of code which gcc 4.2 fails to compile correctly with -O2. Too keep long story short the code fails for gcc from base system and last gcc 4.2 snapshot from ports. It works

Re: gcc 4.2 miscompilation with -O2 -fno-omit-frame-pointer on amd64

2011-11-19 Thread Gleb Kurtsou
On (19/11/2011 07:26), m...@freebsd.org wrote: On Sat, Nov 19, 2011 at 2:01 AM, Gleb Kurtsou gleb.kurt...@gmail.com wrote: Hi, I was lucky to write a bit of code which gcc 4.2 fails to compile correctly with -O2. Too keep long story short the code fails for gcc from base system and last

Re: Fwd: my git development snapshot(s)

2011-09-18 Thread Gleb Kurtsou
On (18/09/2011 12:14), Andriy Gapon wrote: Just decided to follow the global trends and trying to throw all of my local/private changes at you in hope that the crowd-sourcing magic might somehow happen :-) This seems definitely easier than carefully producing the patch files and keeping

Re: Capsicum project: Ideas needed

2011-07-09 Thread Gleb Kurtsou
On (09/07/2011 15:54), Gabor Kovesdan wrote: Em 08-07-2011 13:23, Ivan Voras escreveu: On 08/07/2011 05:42, Ilya Bakulin wrote: Hi hackers, As a part of ongoing effort to enhance usage of Capsicum in FreeBSD base system, I want to ask you, which applications in the base system should

Re: kexec or similar for FreeBSD

2011-06-22 Thread Gleb Kurtsou
On (21/06/2011 16:05), Warner Losh wrote: On Jun 21, 2011, at 2:40 PM, Gleb Kurtsou wrote: On (16/06/2011 22:35), Russell Cattelan wrote: On 6/16/11 3:06 PM, Gleb Kurtsou wrote: On (16/06/2011 13:32), Russell Cattelan wrote: I have been contacted about possibly implementing a fast reboot

Re: kexec or similar for FreeBSD

2011-06-21 Thread Gleb Kurtsou
On (16/06/2011 22:35), Russell Cattelan wrote: On 6/16/11 3:06 PM, Gleb Kurtsou wrote: On (16/06/2011 13:32), Russell Cattelan wrote: I have been contacted about possibly implementing a fast reboot mechanism for FreeBSD similar to kexec on Linux. I have just started looking into how

Re: kexec or similar for FreeBSD

2011-06-16 Thread Gleb Kurtsou
On (16/06/2011 13:32), Russell Cattelan wrote: I have been contacted about possibly implementing a fast reboot mechanism for FreeBSD similar to kexec on Linux. I have just started looking into how this accomplished so I figured a note to freebsd hackers would also be a good place to ask for

Re: OpenGrok for FreeBSD

2011-05-13 Thread Gleb Kurtsou
On (12/05/2011 22:45), Zafer Aydoğan wrote: Hello List, I've set up an OpenGrok service for the FreeBSD sources (current). OpenGrok is a source code search engine and cross reference. I'm updating the sources once a day. I'm a NetBSD developer and I'm also maintaining http://nxr.netbsd.org

Re: Namecache lock contention?

2011-01-28 Thread Gleb Kurtsou
On (28/01/2011 18:20), Ivan Voras wrote: On 28 January 2011 16:25, Dan Nelson dnel...@allantgroup.com wrote: My guess would be: kern/vfs_cache.c:151 static struct rwlock cache_lock; kern/vfs_cache.c:152 RW_SYSINIT(vfscache, cache_lock, Name Cache); The CACHE_*LOCK() macros.c in

Re: Namecache lock contention?

2011-01-28 Thread Gleb Kurtsou
On (28/01/2011 22:59), Ivan Voras wrote: On 28 January 2011 22:18, Gleb Kurtsou gleb.kurt...@gmail.com wrote: You could try replacing rwlock with plain mutex to check if there are priority propagation issues among readers/writers. How would that manifest? (i.e. how would it be detectable

Re: Why not give git a try? (was Re: [head tinderbox] failure on amd64/amd64)

2011-01-25 Thread Gleb Kurtsou
On (24/01/2011 11:33), Alexander Best wrote: On Mon Jan 24 11, Garrett Cooper wrote: On Sun, Jan 23, 2011 at 9:16 PM, Peter Jeremy peterjer...@acm.org wrote: On 2011-Jan-21 20:01:32 +0100, Simon L. B. Nielsen si...@nitro.dk wrote: Perhaps we should just set the tinderbox up to sync

Re: Building third-party modules for kernel with debug options?

2011-01-07 Thread Gleb Kurtsou
On (07/01/2011 15:15), Lev Serebryakov wrote: Hello, Freebsd-hackers. I've found, that struct bio is depend on state of DIAGNOSTIC flag (options DIAGNOSTIC in kernel config). But when I build third-party GEOM (or any other) module with using of bsd.kmod.mk, there is no access to these

Re: Getting full binary path in MAC Framework

2010-12-28 Thread Gleb Kurtsou
On (28/12/2010 14:03), Jakub Szafrański wrote: Hi, At first sory for my bad english and for my behaviour - english is not my native language, and I am new to mail lists. I'm trying to get the *FULL* path to a binary launched by the user, so that I could use it later. I've managed to get

Re: [rfc] Replacing FNV and hash32 with Paul Hsieh's SuperFastHash

2010-12-26 Thread Gleb Kurtsou
On (25/12/2010 20:29), Ivan Voras wrote: On 23.12.2010 23:46, Gleb Kurtsou wrote: For testing I've used dbench with 16 processes on 1 Gb swap back md device, UFS + SoftUpdates: Old hash (Mb/s): 599.94 600.096 599.536 SFH hash (Mb/s): 612.439 612.341 609.673 It's just ~1

Re: [rfc] Replacing FNV and hash32 with Paul Hsieh's SuperFastHash

2010-12-26 Thread Gleb Kurtsou
On (26/12/2010 15:20), Ivan Voras wrote: On 26 December 2010 14:24, Gleb Kurtsou gleb.kurt...@gmail.com wrote: On (25/12/2010 20:29), Ivan Voras wrote: On 23.12.2010 23:46, Gleb Kurtsou wrote: For testing I've used dbench with 16 processes on 1 Gb swap back md device, UFS

Re: [rfc] Replacing FNV and hash32 with Paul Hsieh's SuperFastHash

2010-12-24 Thread Gleb Kurtsou
On (24/12/2010 00:46), Gleb Kurtsou wrote: Hi, I've recently noticed that hash table use in nullfs was inefficient, 1/3 to half of buckets remained unused. I've started investigating it Nullfs patch I've forgotten to attach before. It adds vfs.nullfs.buckets tunable to change number of hash

[rfc] Replacing FNV and hash32 with Paul Hsieh's SuperFastHash

2010-12-23 Thread Gleb Kurtsou
). Hash32 is inappropriate for binary data that results in poor distribution. Thanks, Gleb. commit 6e19401826b6769fa95b1e4f9e561dec7101082b Author: Gleb Kurtsou gleb.kurt...@gmail.com Date: Thu Dec 16 08:05:14 2010 +0200 Import Paul Hsieh's SuperFastHash. Replace FNV and Bernstein hash

Re: Userland debug symbols directory

2010-11-05 Thread Gleb Kurtsou
On (05/11/2010 15:14), Mark Johnston wrote: Hi all, I have some tentative patches which add support for creating a separate directory containing all of the userland debugging symbols. I posted about this a week or so ago:

ABI compatibility checker for shared libraries

2010-11-01 Thread Gleb Kurtsou
Hi, I'd like to introduce shlib-compat -- an ABI compatibility checker for shared libraries with symbol versioning. The idea of such tool was discussed on mail lists before. shlib-compat uses debugging info (dwarf) from compiled library to compare definitions of exported symbols, i.e. no sources

GSoC: namecache improvements

2010-05-22 Thread Gleb Kurtsou
Hello, My project is about reimplementing namecache. In a few words it's about generalizing UFS-like dirhash cache and exposing it to upper layers so that it can be used for reliable full path lookup. The idea is quite different from existing implementations in DragonflyBSD and Linux, instead of

Re: How to change vnode operations ?

2010-04-27 Thread Gleb Kurtsou
On (24/04/2010 12:26), Lukáš Czerner wrote: On Fri, 23 Apr 2010, Gleb Kurtsou wrote: Date: Fri, 23 Apr 2010 12:22:57 +0300 From: Gleb Kurtsou gleb.kurt...@gmail.com To: Lukáš Czerner czerner.lu...@gmail.com Cc: freebsd-hackers@freebsd.org Subject: Re: How to change vnode operations

Re: How to change vnode operations ?

2010-04-23 Thread Gleb Kurtsou
On (23/04/2010 08:10), Lukáš Czerner wrote: On Thu, 22 Apr 2010, Gleb Kurtsou wrote: Date: Thu, 22 Apr 2010 22:18:49 +0300 From: Gleb Kurtsou gleb.kurt...@gmail.com To: Lukáš Czerner czerner.lu...@gmail.com Cc: freebsd-hackers@freebsd.org Subject: Re: How to change vnode operations

Re: How to change vnode operations ?

2010-04-22 Thread Gleb Kurtsou
On (22/04/2010 16:02), Lukáš Czerner wrote: Hi all, this may sound a little odd, since I have noticed that there is much work done to not allow such a thing ($SUBJ). But may be you can help me and point me to the right direction. I am writing a kernel module with somewhat similar

Re: [PATCH] Support for thresholds in du(1)

2010-02-05 Thread Gleb Kurtsou
On (04/02/2010 23:24), jhell wrote: On Thu, 4 Feb 2010 06:55, gleb.kurtsou@ wrote: On (25/02/2009 17:24), Mel wrote: Hi, attached is a small patch to add threshold support to du(1). I've been using it on 7-STABLE machines for a while, cause I got tired of the noise I get when

Re: [PATCH] Support for thresholds in du(1)

2010-02-04 Thread Gleb Kurtsou
On (25/02/2009 17:24), Mel wrote: Hi, attached is a small patch to add threshold support to du(1). I've been using it on 7-STABLE machines for a while, cause I got tired of the noise I get when sorting and then reformatting to human-readable. Especially since sorting isn't part of the

Re: PUFFS SoC project?

2009-11-21 Thread Gleb Kurtsou
On (21/11/2009 21:40), Ivan Voras wrote: What is the status of this year's SoC projects? Specifically, does anyone know what happened to PUFFS? (http://wiki.freebsd.org/SOC2009TatsianaSeveryna) ? As far as I know it is in a pretty good shape. Tatsiana is busy with real job, and has passed

Re: dumpon to an encrypted swap partition?

2009-11-01 Thread Gleb Kurtsou
On (31/10/2009 19:59), remodeler wrote: I am running 8.0 RC1 on a multi-user server with a few dozen vnet-enabled jails and netgraph. The swap partition is encrypted by its /etc/fstab entry, like: /dev/ad2s1b.eli noneswapsw 0 0 I am getting sporadic kernel panics on reboot,

Re: USB key kernel: da0: Attempt to query device size failed: UNIT ?ATTENTION, Medium not present

2008-08-06 Thread Gleb Kurtsou
On (06/08/2008 19:29), Oliver Fromme wrote: Matthias Apitz wrote: I've updated usb/80361, see http://www.freebsd.org/cgi/query-pr.cgi?pr=80361 because I have the same problem as well that an USB key attaches fine when plugged in at boot time, but not later: Situation here is somewhat

[patch] savecore can't create dump from encrypted swap

2008-04-27 Thread Gleb Kurtsou
Issue was mentioned recently on stable@ http://docs.freebsd.org/cgi/mid.cgi?47F548D9.8060905 The problem is in order of rc.d scripts. After encswap finishes it's impossible to open original (not encrypted) swap device for write so savecore fails. The following patch adds 'encswap' target to be