The bug was mine, not the library's. I'm sorry for maligning your code.
However, there's a documentation issue.
The function did not abort; my bug caused it to exit normally when I was
expecting an error return. But it did give an unanticipated message
because the library's default verbosity seems to be 2, not 1 as advertised
for instance in the man page for hugectl(8).
I looked at the source code, and frankly I'm pretty overwhelmed by the
complexity of the Makefile and various macros. I'm not sure where the
default verbosity is set, or how to find out. I have figured out how to
manipulate it with hugectl, but I'd like to change it in the library for
convenience in running my stuff under gdb.
About that Makefile. I'll be studying it because it solves some problems
I've had with software of my own. Well done. But it will be a while
before I absorb it all.
On Fri, Dec 12, 2014 at 4:33 PM, Kevin O'Gorman <kogor...@gmail.com> wrote:
> Hi, I'm new to this list
>
> I'm using freshly-downloaded "stable" release, I'm just getting started so
> I may say some uninformed things.
> I'm on Xubuntu 14.04, x86-64, with 64GB RAM, of which I have reserved 24
> GB for huge pages, intending to use it as a cache for a search in a game.
> Pages are accorningly 4KiB and 2MiB.
>
> I'm a retired programmer with a special fondness for good documentation,
> willing to help write it.
>
> I have a little program I used to verify that I'm understanding things
> properly, attached. Its behavior deviates from the man pages.
> Specifically, a call to get_hugepage_region() that intentionally requests a
> region that is too large is being aborted in the library with a "warning"
> message. My beefs:
> - I don't expect warnings to abort
> - I really really don't like aborts from a library. It's the wrong place
> to make that decision.
> - the man page says it will return with NULL and something in errno.
>
> The message says it's from get_huge_pages, which I presume is an inner
> call, but that's also documented to return NULL.
>
>
> --
Kevin O'Gorman
#define QUESTION ((bb) || (!bb)) /* Shakespeare */
Please consider the environment before printing this email.
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Libhugetlbfs-devel mailing list
Libhugetlbfs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel