HUGEEDIT(7) Miscellaneous Information Manual HUGEEDIT(7)NAME
hugeedit - Set default policy for backing text and data with hugepages
SYNOPSIS
hugeedit binary
hugeedit [options] binary
DESCRIPTION
hugectl runs processes with a specific policy for backing memory regions with hugepages. Ordinarily when processes are relinked with lib-
hugetlbfs using the recommended linking method, either hugectl is required on each execution or environment variables must be set for each
execution. hugeedit can be used to set bits in the ELF header that determine if the text or data segments are backed by default without
further intervention.
If no arguments are specified, hugeedit will display what the current defaults for each segment in a binary are. The available options are
--text Back the text segments of the binary by default.
--data Back the data segments of the binary by default
--disable
Back all segments using small pages by default
SEE ALSO oprofile(1), libhugetlbfs(7), hugectl(8)AUTHORS
libhugetlbfs was written by various people on the libhugetlbfs-devel mailing list.
October 8, 2008 HUGEEDIT(7)
Check Out this Related Man Page
GET_HUGE_PAGES(3) Library Functions Manual GET_HUGE_PAGES(3)NAME
get_huge_pages, free_huge_pages - Allocate and free hugepages
SYNOPSIS
#include <hugetlbfs.h>
void *get_huge_pages(size_t len, ghp_t flags);
void free_huge_pages(void *ptr);
DESCRIPTION
get_huge_pages() allocates a memory region len bytes in size backed by hugepages. Hugepages may be of benefit to applications that use
large amounts of address space and suffer a performance hit due to TLB misses. Wall-clock time or oprofile can be used to determine if
there is a performance benefit from using hugepages or not.
The len parameter must be hugepage-aligned. In the current implementation, only the default hugepage size may be allocated via this func-
tion. Use gethugepagesize to discover what the alignment should be.
The flags argument changes the behaviour of the function. Flags may be or'd together.
GHP_DEFAULT
Allocate a region of memory of the requested length backed by hugepages of the default hugepage size. Return NULL if sufficient
pages are not available
free_huge_pages() frees a region of memory allocated by get_huge_pages(). The behaviour of the function if another pointer is used, valid
or otherwise, is undefined.
RETURN VALUE
On success, a pointer is returned to the allocated memory. On error, NULL is returned. errno will be set based on what the failure of
mmap() was due to.
SEE ALSO oprofile(1) , gethugepagesize(3) , get_hugepage_region(3) , libhugetlbfs(7)AUTHORS
libhugetlbfs was written by various people on the libhugetlbfs-devel mailing list.
October 8, 2008 GET_HUGE_PAGES(3)
I need to know from a script if a given file is a text file (ascii) or binary.
I need it in order to do dos2unix on each text file - and not on binary files (1 Reply)
Hi all,
I have a print control file (dflt) for Oracle which is in binary. As I am going to develope an application in Window environment, I would like to reference the dflt file. But it is in binary format and I cannot access it. Anyone can suggest me how to convert the file into text or... (5 Replies)
i hav tried to convert binary 2D data into text using binreader and writing into text file using streamwriter.
i use ReadSingle() function to convert from binary to ascii, although it works good in 1D data but not in more dimensions.
the kind of values i get are
-1.265369923E+038
and like
... (2 Replies)
Hi every body,
Is it possible to connect two servers Back-to-Back (Point-to-Point) using HBA adapters & using Fiber.
Note it is direct connection & there is no switches between the servers.
I'm concern about using HBA adapters, it is possible or not.
Thanks in advance. :) (3 Replies)
Hello,
I have come across the necessity for me to deal with binary sequences and I had a few questions.
1- Does any UNIX scripting language provide any tool or command for converting text data to binary sequences? Example of binary sequence: "0x97 0x93 0x85 0x40 0xd5 0xd6 0xd7"
2- If I want... (2 Replies)
Hi,
I copied the contents of a binary file into a .text file using hd (hexdump) command. The data in binary file is such that I get in many places like following
00000250 00 00 00 00 3f 2d 91 68 3f 69 fb e7 00 00 00 00 |....?-.h?i......|
00000260 00 00 00 00 00 00 00 00 00 00 00 00 00... (2 Replies)
I am trying to parse a file but the filehas binary data inline mixed with text fields.
I tried the binutils strings function , it get the binary data out but put the char following the binary data in a new line .
input file
app_id:1936 pgm_num:0 branch:TBNY ord_num:0500012(–QMK) deal_num:0... (12 Replies)
I have a binary file with all content is text, i want convert this binary to a regular file because i want to parse it.
Thx.
---------- Post updated at 05:01 AM ---------- Previous update was at 04:34 AM ----------
I have found the solution
cat file | tr -d '\0' (8 Replies)
Hi,
Im wondering how I can convert a binary file to a text file?
I have ran the following command to output which type of binary file coding it is
od -t x1 -c eHat.data0 | head -20
and that gives me the following output;
0000000 5c 00 00 00 cd 06 f2 41 00 00 00 c6 00 00 00 c6 \ \0 \0 \0... (3 Replies)
i have a binary data that has some text in it.
what i want to do is, i want to grab just piece of information from the binary. but when i run my awk on it, it returns nothing.
awk -F"MYINFO=" '{print $2}' mybinary
however, when i install gawk, then try again, it works.
i would prefer... (1 Reply)